Skip to content

Commit

Permalink
Fix password update error.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkreuzkam-cap committed May 30, 2024
1 parent 40b1842 commit 77bfbc6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export class AccountService extends AbstractAccountService implements DeletionSe
});

if (this.configService.get('FEATURE_IDENTITY_MANAGEMENT_STORE_ENABLED') === true) {
if (idmAccount === null || idmAccount.username !== accountSave.username) {
if (idmAccount === null || (accountSave.username && idmAccount.username !== accountSave.username)) {
throw new ValidationError('Account could not be updated');
}
}
Expand Down

0 comments on commit 77bfbc6

Please sign in to comment.