summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorJack Davis <JackWillDavis@users.noreply.github.com>2016-08-19 09:45:39 +0100
committerMorris Jobke <hey@morrisjobke.de>2016-08-19 13:31:19 +0200
commitdfb66e110122947e6aabb2c61941a9d2cc9a5908 (patch)
treeaeb2c38e6b0fe0cff93fff46553ae2b8d369f4d3 /settings
parentb1299bb029a2e5ce40ebf7ab04926eed56e6f595 (diff)
downloadnextcloud-server-dfb66e110122947e6aabb2c61941a9d2cc9a5908.tar.gz
nextcloud-server-dfb66e110122947e6aabb2c61941a9d2cc9a5908.zip
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.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/settings/js/users/users.js b/settings/js/users/users.js
index 6be7b2d9526..78118d5c5aa 100644
--- a/settings/js/users/users.js
+++ b/settings/js/users/users.js
@@ -670,7 +670,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));
}
}