Skip to content

Commit

Permalink
Merge pull request #3916 from tdonohue/port_3818_to_7x
Browse files Browse the repository at this point in the history
[Port dspace-7_x] 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 1cc4756 + 5a5c1f1 commit 38d5f87
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 @@ -173,7 +173,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 38d5f87

Please sign in to comment.