Merge pull request #19625 from owncloud/passwordchange-hidestrengthify
Properly hide strengthify after password change
This commit is contained in:
commit
df1313d025
|
@ -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,
|
||||
|
|
|
@ -189,7 +189,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');
|
||||
|
|
Loading…
Reference in New Issue