Hi,
When I use the Metronic's KTPasswordMeter class it asks for a password of a minimum of 8 characters. ("Use 8 or more characters with a mix of letters, numbers & symbols."
How can I change the minimum rerquirement to 12 or mor characters?
I checked the Password Meter api documentation and I cannot find any way to do it.
thanks!
That is exactly what I need. Thank you for detailed answer!
Glad to help you out. If you need any further clarifications please do let me know
Hi,
To initialize a Password Meter with custom options please use the below JS code:
var options = {
minLength: 8,
checkUppercase: true,
checkLowercase: true,
checkDigit: true,
checkChar: true,
scoreHighlightClass: "active"
};
var passwordMeterElement = document.querySelector("#kt_password_meter_control");
var passwordMeter = new KTPasswordMeter(passwordMeterElement, options);
data-kt-password-meter="true"
attribute to avoid lazy initializes.