]> source.dussan.org Git - nextcloud-server.git/commitdiff
25532_issue_password_update_notification_updated (#25756)
authorJack Davis <JackWillDavis@users.noreply.github.com>
Fri, 19 Aug 2016 08:45:39 +0000 (09:45 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Fri, 19 Aug 2016 11:31:19 +0000 (13:31 +0200)
* 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

index 6be7b2d9526446f70ca4f0cde7a7a79646b3f22d..78118d5c5aa5d1e7621a1c7c19bcf371008d993a 100644 (file)
@@ -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));
                                                                }
                                                        }