Skip to content

Commit

Permalink
Set version field from existing alias entity to updated alias entity
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianhoelzl-sap committed Jul 1, 2024
1 parent 46eabf7 commit a38a7da
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ protected void setPropertiesFromExistingAliasEntity(
newAliasEntity.setPasswordLastModified(existingAliasEntity.getPasswordLastModified());
newAliasEntity.setLastLogonTime(existingAliasEntity.getLastLogonTime());
newAliasEntity.setPreviousLogonTime(existingAliasEntity.getPreviousLogonTime());

// the version field might differ between the original user and its alias -> use value of existing alias
newAliasEntity.setVersion(existingAliasEntity.getVersion());
}

private Optional<IdentityProvider<?>> retrieveIdpByOrigin(final String originKey, final String zoneId) {
Expand Down

0 comments on commit a38a7da

Please sign in to comment.