I need to implement client side Password validation such that password should not contain user's account name or parts of the user's full name that exceed two consecutive characters.
I'm exposing the user name and full name on the client side. But so far I couldn't figure out the regex or any other approach to implement on the client side.
Example
username: test20@xyz.com
password: Usertest123 --> this should fail the validation since it contains "test" in both password and username.