Properly hide strengthify after password change

This commit is contained in:
Vincent Petry 2015-10-07 15:58:37 +02:00
parent cd818e7419
commit 14dc36efe6
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@
dataType: 'script', dataType: 'script',
url: options.zxcvbn url: options.zxcvbn
}).done(function() { }).done(function() {
me.bind('keyup input', function() { me.bind('keyup input change', function() {
var password = $(this).val(), var password = $(this).val(),
// hide strengthigy if no input is provided // hide strengthigy if no input is provided
opacity = (password === '') ? 0 : 1, opacity = (password === '') ? 0 : 1,

View File

@ -188,7 +188,7 @@ $(document).ready(function () {
$.post(OC.generateUrl('/settings/personal/changepassword'), post, function (data) { $.post(OC.generateUrl('/settings/personal/changepassword'), post, function (data) {
if (data.status === "success") { if (data.status === "success") {
$('#pass1').val(''); $('#pass1').val('');
$('#pass2').val(''); $('#pass2').val('').change();
// Hide a possible errormsg and show successmsg // Hide a possible errormsg and show successmsg
$('#password-changed').removeClass('hidden').addClass('inlineblock'); $('#password-changed').removeClass('hidden').addClass('inlineblock');
$('#password-error').removeClass('inlineblock').addClass('hidden'); $('#password-error').removeClass('inlineblock').addClass('hidden');