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