Browse Source

Properly hide strengthify after password change

tags/v9.0beta1
Vincent Petry 8 years ago
parent
commit
14dc36efe6
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      core/vendor/strengthify/jquery.strengthify.js
  2. 1
    1
      settings/js/personal.js

+ 1
- 1
core/vendor/strengthify/jquery.strengthify.js View File

@@ -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,

+ 1
- 1
settings/js/personal.js View File

@@ -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');

Loading…
Cancel
Save