Merge pull request #1003 from nextcloud/backport-978-add-feedback-for-password-change

[stable10] Add feedback for password change
This commit is contained in:
Marius Blüm 2016-08-22 12:08:41 +02:00 committed by GitHub
commit 7bb91f15b8
1 changed files with 3 additions and 1 deletions

View File

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