I need to check every user on my laravel project to see if their password is unsafe. For example, check if their password is simply "password", if so i would change it and send it to their email.
Is it possible?
I need to check every user on my laravel project to see if their password is unsafe. For example, check if their password is simply "password", if so i would change it and send it to their email.
Is it possible?
This post has a regex that checks for a safe password
Laravel password validation rule
Your regular expression would look like this:
^.*(?=.{3,})(?=.*[a-zA-Z])(?=.*[0-9])(?=.*[\d\x])(?=.*[!$#%]).*$
Hope it helps you