strengthening password requirements
Hi Ray, I'm trying to ensure website users use stronger passwords in future, so I've replaced the previous Entry Length validation on the attached registration page (which only set the min password length as 8 characters) with a Regular Expression validation - I want their passwords to be between 8 and 32 characters long and contain at least one uppercase character, one lowercase character, one digit and one special character. I added this to the server validations as follows:
$WAFV_Errors .= WAValidateRX(((isset($_POST["Registration_group_2_Password"]))?$_POST["Registration_group_2_Password"]:"") . "","^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*[*.!@$%^&(){}[]:;<>,.?/~_+-=|\]).{8,32}$",true,10);
However it's not accepting any password I try, however complex. Not sure what I've done wrong?