diff options
author | Jack Davis <JackWillDavis@users.noreply.github.com> | 2016-08-19 11:45:39 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-08-22 10:58:04 +0300 |
commit | 31631d656c3dadef6d4eca422a7491738cca7f3b (patch) | |
tree | b9080b0acff841e90873d3867aada2534880cb1c /settings | |
parent | 584242f8b319a00e2aac980aae1c3ee206197f2c (diff) |
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
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/users/users.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/settings/js/users/users.js b/settings/js/users/users.js index eb041054cdc..fcfa5a83e6c 100644 --- a/settings/js/users/users.js +++ b/settings/js/users/users.js @@ -656,7 +656,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)); } } |