Skip to content

Commit

Permalink
changed error message when password is rejected
Browse files Browse the repository at this point in the history
  • Loading branch information
swdee committed Mar 16, 2020
1 parent 2d0f56b commit d27aa66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/keystore/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const (
var (
errEmptyUsername = errors.New("username can't be the empty string")
errUserPassMaxLength = fmt.Errorf("CreateUser call rejected due to username or password exceeding maximum length of %d chars", maxUserPassLen)
errWeakPassword = errors.New("Failed to create user as the given password is to weak. Passwords must be 8 or more characters and contain a combination of UPPER and lowercase letters, numbers, and special characters")
errWeakPassword = errors.New("Failed to create user as the given password is to weak. A stronger password is one of 8 or more characters containing attributes of upper and lowercase letters, numbers, and/or special characters")
)

// KeyValuePair ...
Expand Down

0 comments on commit d27aa66

Please sign in to comment.