Define minimum lenght in KTPasswordMeter
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!
Replies (3)
Glad to help you out. If you need any further clarifications please do let me know 
Your Support Matters!
We will highly appreciate your Metronic Review on Themeforest.
Please go to Themeforest Downloads page, select Metronic & leave your feedback.
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); To cancel the auto initialization of the password meter instance please remove
data-kt-password-meter="true" attribute to avoid lazy initializes. Regards.