Skip to content

Commit 31631d6

Browse files
JackWillDavisnickvergessen
authored andcommitted
25532_issue_password_update_notification_updated (#25756)
* Password Update Notification Added an IF ELSE statement to ensure that feedback is provided to the user on successfully updating a user password in settings. * Password Update Success Message Updated the password update success message
1 parent 584242f commit 31631d6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

settings/js/users/users.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,9 @@ $(document).ready(function () {
656656
OC.generateUrl('/settings/users/changepassword'),
657657
{username: uid, password: $(this).val(), recoveryPassword: recoveryPasswordVal},
658658
function (result) {
659-
if (result.status != 'success') {
659+
if (result.status === 'success') {
660+
OC.Notification.showTemporary(t('admin', 'Password successfully changed'));
661+
} else {
660662
OC.Notification.showTemporary(t('admin', result.data.message));
661663
}
662664
}

0 commit comments

Comments
 (0)