Skip to content

Commit 7bb91f1

Browse files
authored
Merge pull request #1003 from nextcloud/backport-978-add-feedback-for-password-change
[stable10] Add feedback for password change
2 parents efc4804 + f05cd64 commit 7bb91f1

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)