Custom User's password validator

On “Users/ User properties”, I set Password Field’s Validator as

((?=.*[^A-Za-z\n])(?=.*[A-Za-z]).{6,20})

Then I continue using the console, go to “Data/Users/ passworld field”, and change password as “123456”.
I got the notification: “Validation for the password field failed. The property doesn’t match the field requirement”.
That means the validation works very well.
But the problem is, when I change the password by using restoring password function. The system sends me an email with a link to changing password page. At here, I can change password with any value, even just a single character.
Really need your help.

Hi, Nam.

This is a complex issue and it needs internal discussion.
Thanks for reporting!

Thanks Anatolii,

I’m looking forward to your reply. (y)