Browse Source

[CLOUDTRUST-1917] correction

master
Sonia 6 years ago
committed by GitHub
parent
commit
6f8dd058c1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      errormessages.go
  2. 4
      keycloak_client.go

1
errormessages.go

@ -22,4 +22,5 @@ const (
OIDCProvider = "OIDCProvider"
UserOrEmail = "UsernameOrEmail"
Username = "username"
Email = "email"
)

4
keycloak_client.go

@ -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,
}

Loading…
Cancel
Save