04-01-2016, 02:35 AM
Nothing crucial but noticed if a user somehow got back to the login page after logged in, it loads the login form again. This should just redirect back to account.php (or whichever page developer want).
Would a good fix be removing the two from the if else statements and adding
<pre></pre>
before the first if statement in login.php?
Would a good fix be removing the two
Code:
$user = new User();
<pre>
Code:
$user = new User();
if($user->isLoggedIn()){
Redirect::to('account.php');
}
before the first if statement in login.php?