add redirect to dashboard if already logged
This commit is contained in:
parent
bb8a114485
commit
afb899c003
|
@ -36,7 +36,12 @@ namespace controllers\publics;
|
|||
*/
|
||||
public function login()
|
||||
{
|
||||
$this->render('connect/login');
|
||||
if ($_SESSION['connect'] ?? false)
|
||||
{
|
||||
return $this->redirect(\descartes\Router::url('Dashboard', 'show'));
|
||||
}
|
||||
|
||||
return $this->render('connect/login');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue