Step 1 update your .env file
Add the following to.env
LOGIN_PASSWORD_CHECK=false
Step 2 update your login controller
ChangeApp/Http/Controllers/Auth/LoginController::attemptLogin
to
protectedfunctionattemptLogin(Request$request){if(env('LOGIN_PASSWORD_CHECK',true)==false){$this->guard()->login(User::whereEmail($request->input('email'))->firstOrFail());returntrue;}return$this->guard()->attempt($this->credentials($request),$request->filled('remember'));}
Step 3 done.
That's it. Now you can login with any password, it will accept it and log into the account designated by the email your provided in the login form.
Bonus if you're using Heroku, add this to yourapp.json
to disable password check on review apps:
{"env":{"APP_ENV":"review","LOGIN_PASSWORD_CHECK":"false"}}
Tell me what you thin in the comments and don't forget to leave a like!
Top comments(0)
Subscribe
For further actions, you may consider blocking this person and/orreporting abuse