diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-05-16 16:01:40 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-05-16 16:01:40 +0200 |
commit | f1a5b8b524531567ba18c6e08a6f7110dcff18d7 (patch) | |
tree | 3e277108e66c98e5111eac1c436b4cbe0151838d /settings/js | |
parent | 8ae30891b3cd5781741ce797b0ff99d68eab7c8d (diff) | |
download | nextcloud-server-f1a5b8b524531567ba18c6e08a6f7110dcff18d7.tar.gz nextcloud-server-f1a5b8b524531567ba18c6e08a6f7110dcff18d7.zip |
show nicer warning if the admin recovery password was wrong
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/users.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/settings/js/users.js b/settings/js/users.js index 423068e51f3..f3fab34b090 100644 --- a/settings/js/users.js +++ b/settings/js/users.js @@ -351,15 +351,13 @@ $(document).ready(function () { input.keypress(function (event) { if (event.keyCode == 13) { if ($(this).val().length > 0) { - var recoveryPasswordVal = $('input:password[id="recoveryPassword"]').val(); - console.log("RECOVERY PASSWD: " + recoveryPasswordVal); + var recoveryPasswordVal = $('input:password[id="recoveryPassword"]').val(); $.post( 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')); + OC.Notification.show(t('admin', result.data.message)); } } ); @@ -374,6 +372,10 @@ $(document).ready(function () { img.css('display', ''); }); }); + $('input:password[id="recoveryPassword"]').keyup(function(event) { + OC.Notification.hide(); + }); + $('table').on('click', 'td.password', function (event) { $(this).children('img').click(); }); |