mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +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() {
|
updateSecurity() {
|
||||||
const passEntered = isNotEmpty(this.password);
|
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'));
|
this.notificationsService.error(this.translate.instant(this.PASSWORD_NOTIFICATIONS_PREFIX + 'error.general'));
|
||||||
}
|
}
|
||||||
if (!this.invalidSecurity && passEntered) {
|
if (!this.invalidSecurity && passEntered) {
|
||||||
|
Reference in New Issue
Block a user