| | |
| | | } else { |
| | | width = points*20; |
| | | } |
| | | document.getElementById("passBar").innerHTML = '<div style="float:left; height: 10px; padding:0px; background-color: ' + pass_messages[points]['color'] + '; width: ' + width + 'px;" />'; |
| | | document.getElementById("passBar").innerHTML = '<div style="background-color: ' + pass_messages[points]['color'] + '; width: ' + width + 'px;" />'; |
| | | document.getElementById("passText").innerHTML = pass_messages[points]['text']; |
| | | } |
| | | function pass_contains(pass, check) { |
| | |
| | | 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; |
| | |
| | | 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; }; |