Sonia
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
2 deletions
-
errormessages.go
-
keycloak_client.go
|
|
|
@ -22,4 +22,5 @@ const ( |
|
|
|
OIDCProvider = "OIDCProvider" |
|
|
|
UserOrEmail = "UsernameOrEmail" |
|
|
|
Username = "username" |
|
|
|
Email = "email" |
|
|
|
) |
|
|
|
|
|
|
|
@ -407,8 +407,8 @@ func whitelistErrors(statusCode int, message string) error { |
|
|
|
"User exists with same username or email": MsgErrExistingValue + "." + UserOrEmail, |
|
|
|
"usernameExistsMessage": MsgErrExistingValue + "." + UserOrEmail, |
|
|
|
"emailExistsMessage": MsgErrExistingValue + "." + UserOrEmail, |
|
|
|
"Username exists with same username": MsgErrExistingValue + "." + UserOrEmail, |
|
|
|
"Username exists with same email": MsgErrExistingValue + "." + UserOrEmail, |
|
|
|
"Username exists with same username": MsgErrExistingValue + "." + Username, |
|
|
|
"Username exists with same email": MsgErrExistingValue + "." + Email, |
|
|
|
"readOnlyUsernameMessage": MsgErrReadOnly + "." + Username, |
|
|
|
} |
|
|
|
|
|
|
|
|