Hello @ihor,
Thank you for sharing this snippet. It worked for me and answered the question I asked here earlier: Enforce strong password on user creation
To keep users from generating weak passwords during further use of their account, I apply the filter to the user_update and the user_password_reset form as well.
However, there is an inconsistency now in the UI since the default JavaScript function and prompt of the forms consider the password length only. How can it be changed to include other requirements like “at least one special character” and “at least one number”?
Thanks!