diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-10-07 15:58:37 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-10-07 17:56:28 +0200 |
commit | 14dc36efe6326d1f626a41c4295f570a729d57ae (patch) | |
tree | 71c5e7dc22e6bb097d489151b7f815917e8d1d33 | |
parent | cd818e7419fb39d97683ecc5803534b0ed632596 (diff) | |
download | nextcloud-server-14dc36efe6326d1f626a41c4295f570a729d57ae.tar.gz nextcloud-server-14dc36efe6326d1f626a41c4295f570a729d57ae.zip |
Properly hide strengthify after password change
-rw-r--r-- | core/vendor/strengthify/jquery.strengthify.js | 2 | ||||
-rw-r--r-- | settings/js/personal.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/vendor/strengthify/jquery.strengthify.js b/core/vendor/strengthify/jquery.strengthify.js index 21f5fa82956..4fcc4d7c7c4 100644 --- a/core/vendor/strengthify/jquery.strengthify.js +++ b/core/vendor/strengthify/jquery.strengthify.js @@ -58,7 +58,7 @@ dataType: 'script', url: options.zxcvbn }).done(function() { - me.bind('keyup input', function() { + me.bind('keyup input change', function() { var password = $(this).val(), // hide strengthigy if no input is provided opacity = (password === '') ? 0 : 1, diff --git a/settings/js/personal.js b/settings/js/personal.js index 33746d22aca..eef669eeb73 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -188,7 +188,7 @@ $(document).ready(function () { $.post(OC.generateUrl('/settings/personal/changepassword'), post, function (data) { if (data.status === "success") { $('#pass1').val(''); - $('#pass2').val(''); + $('#pass2').val('').change(); // Hide a possible errormsg and show successmsg $('#password-changed').removeClass('hidden').addClass('inlineblock'); $('#password-error').removeClass('inlineblock').addClass('hidden'); |