APM Customization: Password Change Validation
Problem this snippet solves:
When an user is prompted to change the password, the user will be instructed to choose a password that matches your password policy. See the screenshots below. This upd...
Updated Oct 26, 2023
Version 2.0Apr 28, 2021
Thanks! Yes, should be possible by adjusting the javascript part. Something like below. The password should now contain two or more lowercase letters.
// Validate lowercase letters
var letter = document.getElementById("letter");
var lowerCaseLetters = /[a-z]/g;
if(field1.value.match(lowerCaseLetters).length >= 2) {
letter.classList.remove("invalid");
letter.classList.add("valid");
} else {
letter.classList.remove("valid");
letter.classList.add("invalid");
}