Skip to content

Commit

Permalink
Use new event
Browse files Browse the repository at this point in the history
  • Loading branch information
AnjanaSamindraPerera committed Mar 13, 2024
1 parent 977ec0c commit a619cb9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,7 @@ public User updateUser(User user, Map<String, Boolean> requiredAttributes) throw
// If password is updated, set it separately.
if (user.getPassword() != null) {
carbonUM.updateCredentialByAdminWithID(user.getId(), user.getPassword());
publishEvent(user, IdentityEventConstants.Event.POST_UPDATE_CREDENTIAL, false);
publishEvent(user, IdentityEventConstants.Event.POST_UPDATE_CREDENTIAL_BY_SCIM, false);
}

updateUserClaims(user, oldClaimList, claimValuesInLocalDialect);
Expand Down Expand Up @@ -1303,7 +1303,7 @@ public User updateUser(User user, Map<String, Boolean> requiredAttributes,
// If password is updated, set it separately.
if (user.getPassword() != null) {
carbonUM.updateCredentialByAdminWithID(user.getId(), user.getPassword());
publishEvent(user, IdentityEventConstants.Event.POST_UPDATE_CREDENTIAL, true);
publishEvent(user, IdentityEventConstants.Event.POST_UPDATE_CREDENTIAL_BY_SCIM, true);
}

updateUserClaims(user, oldClaimList, claimValuesInLocalDialect, allSimpleMultiValuedClaimsList);
Expand Down

0 comments on commit a619cb9

Please sign in to comment.