mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Merge pull request #3916 from tdonohue/port_3818_to_7x
[Port dspace-7_x] Changing metadata in a user profile without specifying a password brings up a success and an error panel
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user