|
|
|
@ -1,11 +1,12 @@
|
|
|
|
|
//Requires zxcvbn.js and Bootstrap
|
|
|
|
|
(function ($) { |
|
|
|
|
|
|
|
|
|
function disableSend () { |
|
|
|
|
$('#cambiapass').prop('disabled', true).addClass('disabled'); |
|
|
|
|
$('#pass-tip').text('Piensa algo mejor porfa :)').show(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function enableSend () { |
|
|
|
|
$('#pass-tip').text('').hide(); |
|
|
|
|
$('#cambiapass').prop('disabled', false).removeClass('disabled'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -15,7 +16,7 @@
|
|
|
|
|
var settings = $.extend({ |
|
|
|
|
passwordInput: '#Password', |
|
|
|
|
userInputs: [], |
|
|
|
|
ratings: ["Very weak", "Weak", "OK", "Strong", "Very strong"], |
|
|
|
|
ratings: ["Very weak", "Weak", "meh", "Strong", "Very strong"], |
|
|
|
|
//all progress bar classes removed before adding score specific css class
|
|
|
|
|
allProgressBarClasses: "progress-bar-danger progress-bar-warning progress-bar-success progress-bar-striped active", |
|
|
|
|
//bootstrap css classes (0-4 corresponds with zxcvbn score)
|
|
|
|
|