Skip to content

Commit c7d0905

Browse files
authored
Check for new papp_ api key prefix (#122)
* Check for new `papp_` api key prefix
1 parent 9fcb7d9 commit c7d0905

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/configure.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ func validateField(name string, str string) error {
183183
return fmt.Errorf("please provide a valid panel URL")
184184
}
185185
case "token":
186-
if !regexp.MustCompile(`^peli_(\w{43})$`).Match([]byte(str)) {
186+
if !regexp.MustCompile(`^(peli|papp)_(\w{43})$`).Match([]byte(str)) {
187187
return fmt.Errorf("please provide a valid authentication token")
188188
}
189189
case "node":

0 commit comments

Comments
 (0)