Skip to content

Commit

Permalink
Merge pull request DSpace#3915 from tdonohue/port_3818_to_main
Browse files Browse the repository at this point in the history
[Port main] Changing metadata in a user profile without specifying a password brings up a success and an error panel
  • Loading branch information
tdonohue authored Jan 29, 2025
2 parents d70fa8f + 090dda2 commit 6916483
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/profile-page/profile-page.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ export class ProfilePageComponent implements OnInit {
*/
updateSecurity() {
const passEntered = isNotEmpty(this.password);
if (this.invalidSecurity) {
const validCurrentPassword = isNotEmpty(this.currentPassword);
if (validCurrentPassword && !passEntered) {
this.notificationsService.error(this.translate.instant(this.PASSWORD_NOTIFICATIONS_PREFIX + 'error.general'));
}
if (!this.invalidSecurity && passEntered) {
Expand Down

0 comments on commit 6916483

Please sign in to comment.