weDevsOfficial / wp-user-frontend

A WordPress plugin that brings many backend functionality to the site frontend
https://wordpress.org/plugins/wp-user-frontend/
226 stars 146 forks source link

Register form - checking password against regex #850

Open DenisCGN opened 4 years ago

DenisCGN commented 4 years ago

Hello, how can I check the password, a user types in into the registration form (password field), against a regex?

Like: ^(?=.{10,}$)(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*\W).*$ or something?

Can I do this with that POST Form validation HOOK, too?

Maybe yuo can add this directly to the password field.

Thanks, Denis

DenisCGN commented 2 years ago

Can this be done somehow, or that the password needs some standard.

sapayth commented 1 year ago

From WP User Frontend Pro v3.4.12 you can set password strength to Weak, Medium, Strong just like WordPress