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:
Roeland Jago Douma 2016-08-22 12:16:06 +02:00 committed by GitHub
commit d2d1508276
1 changed files with 3 additions and 1 deletions

View File

@ -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));
}
}