I've a pretty good password validation, but I would like to add some more functionality.
You can see an example here http://jsfiddle.net/yfM5T/22/
Currently I've a password that checks, 7 chars, 1 upper case, 1 digit and 1 special character and even it won't allow white space.
But I want to add
- password doesn't contains 9 consecutive numbers (because some people use phone numbers as passwords, e.g. it won't take
Pass@123456789butPass123456@789is ok) - Not same as the log-in name
- Not more than two repeating characters (
saagais ok butsaaagais not allowed)
Bonus if the password validation tool tip shows the white space validation message only if the user put a white space rather than showing onfocus (only for the white space, 9 consequtive numbers, username etc.)
ifstatement. If you don't want them to use phone numbers, use a regular expression.