Skip to content

Commit

Permalink
Merge pull request #1004 from nextcloud/backport-978-add-feedback-for…
Browse files Browse the repository at this point in the history
…-password-change-9

[stable9] Add feedback for password change
  • Loading branch information
rullzer authored Aug 22, 2016
2 parents 584242f + 31631d6 commit d2d1508
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion settings/js/users/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
Expand Down

0 comments on commit d2d1508

Please sign in to comment.