The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once



UserSpice
login page after logged in - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23)
+--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26)
+--- Thread: login page after logged in (/showthread.php?tid=114)



login page after logged in - john - 04-01-2016

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
Code:
$user = new User();
from the if else statements and adding
<pre>
Code:
$user = new User();
if($user->isLoggedIn()){
  Redirect::to('account.php');
}
</pre>

before the first if statement in login.php?