I wanted to login the user if his status field of users table was set to 1 otherwise not. So this problem was solved in this question which I had asked.
How to override default login mechanism of Laravel 5.6?
But now I am having another problem. When a user whose status is 0(not active) clicks the default forgot password link in login page and enters his email address and then clicks the reset link and fills the new password, he automatically gets logged in even though his status is 0(not active).
So how can I prevent the forgot password mechanism if user's status is 0 ?
Go to ForgotPasswordController and paste it. the same mechanism exist here . therefor I am not explaining properly.