Skip to content

Commit 3cebeb1

Browse files
JackWillDavisDeepDiver1975
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 4d7e803 commit 3cebeb1

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
@@ -668,7 +668,9 @@ $(document).ready(function () {
668668
OC.generateUrl('/settings/users/changepassword'),
669669
{username: uid, password: $(this).val(), recoveryPassword: recoveryPasswordVal},
670670
function (result) {
671-
if (result.status != 'success') {
671+
if(result.status == 'success') {
672+
OC.Notification.showTemporary(t('admin', 'Password successfully changed'));
673+
} else {
672674
OC.Notification.showTemporary(t('admin', result.data.message));
673675
}
674676
}

0 commit comments

Comments
 (0)