Merge pull request #1003 from nextcloud/backport-978-add-feedback-for-password-change
[stable10] Add feedback for password change
This commit is contained in:
commit
7bb91f15b8
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue