Handle blank password.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -167,7 +167,7 @@ Map<String, Object> syncUserAccount() { | ... | @@ -167,7 +167,7 @@ Map<String, Object> syncUserAccount() { |
167 | logger.info("Would update: keycloak(${keycloakUserId})") | 167 | logger.info("Would update: keycloak(${keycloakUserId})") |
168 | updateUser(keycloakUserId, userId) | 168 | updateUser(keycloakUserId, userId) |
169 | 169 | ||
170 | if (newPassword != null) { | 170 | if (newPassword) { |
171 | UserResource userResource = usersResource.get(keycloakUserId) | 171 | UserResource userResource = usersResource.get(keycloakUserId) |
172 | List<CredentialRepresentation> credentials = userResource.credentials() | 172 | List<CredentialRepresentation> credentials = userResource.credentials() |
173 | for (CredentialRepresentation credential: credentials) { | 173 | for (CredentialRepresentation credential: credentials) { | ... | ... |
-
Please register or sign in to post a comment