When my users register in my app it automatically redirects them to /dashboard
which is technically fine, but it isn't checking to see if the confirmed
column in the database has a value of 1
or 0
, it's just logging in based on the username and password.
I will happily include code but right now I don't actually know what code you guys need to see.
I need it to check the confirmed
column and if it's a 0
, not to log them in and throw and error.
thanks for any info,
Andy
I achieve this by utilizing middleware:
My routes.php:
My Kernel.php:
My Authenticate.php middleware:
I tried to cut this down as much as possible for you.