diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-05-16 15:19:53 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-05-16 15:19:53 +0200 |
commit | 8ae30891b3cd5781741ce797b0ff99d68eab7c8d (patch) | |
tree | be4dbe155cfa990111971c84b873c84ba1e04bf0 /settings/js | |
parent | 9d1e60325c6f478484ff8f70ff3cd13d9d7d4913 (diff) | |
download | nextcloud-server-8ae30891b3cd5781741ce797b0ff99d68eab7c8d.tar.gz nextcloud-server-8ae30891b3cd5781741ce797b0ff99d68eab7c8d.zip |
some error handling in case the recovery password is wrong
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/users.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/settings/js/users.js b/settings/js/users.js index 9bd7f31f0b2..423068e51f3 100644 --- a/settings/js/users.js +++ b/settings/js/users.js @@ -357,6 +357,10 @@ $(document).ready(function () { OC.filePath('settings', 'ajax', 'changepassword.php'), {username: uid, password: $(this).val(), recoveryPassword: recoveryPasswordVal}, function (result) { + if (result.status != 'success') { + OC.dialogs.alert(result.data.message, + t('settings', 'Error changing password')); + } } ); input.blur(); |