I am new to Laravel but fell in love with the framework and decided to use it for my project.
I have a field active
and by default I've set it to 0
. In the Attempt()
method, I've set $credentials['active'] = 1
. When I logout and login again, this works fine.
But when I register a user, it automatically logs the user in without checking active field.
See Question&Answers more detail:os