Laravel Prevent User to Enter Common Passwords Example
This simple article demonstrates of Forcing User to Prevent Common Password in Laravel Example. you can understand a concept of prevent dumb password laravel. you will learn laravel password security. I would like to show you restrictions common password to enter laravel. You just need to some step to done password best practices laravel.
As we know, security is a key of website or software, If you are creating new account and you create very familiar or regular password like “123456”, “123123”, “abcd” etc. So this type of ordinary password can know or gases your password and login in to your account. So we have to use something like package or plugin for prevent this type of common password enter to user.
In this example, we are going to learn how we can prevent common password using laravel custom validation rule. laravel framework not provide by default any validation for this, so we will use “unicodeveloper/laravel-password” package that will help us.
So, let’s follow bellow few step to done this example. As you see bellow preview of error message, after done this example you can see on your project too.
You need to follow the below steps:
Step 1: Install Laravel
Step 2: Install Auth
Step 3: Install Laravel Password Package
Step 4: Add Validation Message
Step 5: Use Validation Rule
Link: https://www.nicesnippets.com/blog/forcing-user-to-prevent-common-password-in-laravel-example