06-01-2019, 09:27 PM
Hi Leandro,
I'm not sure I totally understand your question.
So you are saying when a user first comes to your page, if they are not logged in, you want them to be redirected to the login page?
If that is what you're doing, you want to add the following php on line 12 of index.php before the ?>
if(!isset($user) || !$user->isLoggedIn()){ Redirect::to('users/login.php'); }
I'm not sure I totally understand your question.
So you are saying when a user first comes to your page, if they are not logged in, you want them to be redirected to the login page?
If that is what you're doing, you want to add the following php on line 12 of index.php before the ?>
if(!isset($user) || !$user->isLoggedIn()){ Redirect::to('users/login.php'); }