From a7796bec1be01b51f400e9a3a698535b12b636aa Mon Sep 17 00:00:00 2001 From: Marius Burkard <m.burkard@pixcept.de> Date: Thu, 11 Feb 2016 13:44:27 -0500 Subject: [PATCH] Merge branch 'stable-3.1' --- interface/web/js/scrigo.js.php | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/interface/web/js/scrigo.js.php b/interface/web/js/scrigo.js.php index 7ba19d1..d5af589 100644 --- a/interface/web/js/scrigo.js.php +++ b/interface/web/js/scrigo.js.php @@ -153,9 +153,9 @@ var maxLength = minLength + 5; var length = getRandomInt(minLength, maxLength); - var alphachars = "abcdefghijklmnopqrstuvwxyz"; - var upperchars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; - var numchars = "1234567890"; + var alphachars = "abcdefghijkmnopqrstuvwxyz"; + var upperchars = "ABCDEFGHJKLMNPQRSTUVWXYZ"; + var numchars = "23456789"; var specialchars = "!@#_"; if(num_special == undefined) num_special = 0; @@ -204,6 +204,12 @@ var pword = password(<?php echo $min_password_length; ?>, false, 1); jQuery('#'+repeatPasswordFieldID).val(pword); newPWField.attr('id', passwordFieldID).val(pword).trigger('keyup').select(); + newPWField.unbind('keyup').on('keyup', function(e) { + if($(this).val() != pword) { + var pos = $(this).getCursorPosition(); + $(this).attr('type', 'password').unbind('keyup').setCursorPosition(pos); + } + }); } var funcDisableClick = function(e) { e.preventDefault(); return false; }; -- Gitblit v1.9.1