I have written code for email verification. I want to change my login controller behavior so that it will only allow verified users only.
I have status field in database that will store user is verified or not by storing 0/1. Now on login request I have to check email, password, as well as status code is equal to 1. If verified, the user will be redirected to dashboard otherwise redirect to login with error message.
I have done all email verification things.
Please let me know what inputs you want.