1180b951 by Adam Heath

Handle blank password.

1 parent 24f8bd97
...@@ -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) {
......