From f05cd6445887bc7e3859ae4a30d26a4018d85c82 Mon Sep 17 00:00:00 2001 From: Jack Davis Date: Fri, 19 Aug 2016 09:45:39 +0100 Subject: [PATCH] 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 --- settings/js/users/users.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/settings/js/users/users.js b/settings/js/users/users.js index e0fdea6477..e4870af71a 100644 --- a/settings/js/users/users.js +++ b/settings/js/users/users.js @@ -668,7 +668,9 @@ $(document).ready(function () { OC.generateUrl('/settings/users/changepassword'), {username: uid, password: $(this).val(), recoveryPassword: recoveryPasswordVal}, function (result) { - if (result.status != 'success') { + if (result.status === 'success') { + OC.Notification.showTemporary(t('admin', 'Password successfully changed')); + } else { OC.Notification.showTemporary(t('admin', result.data.message)); } }