add redirect to dashboard if already logged

This commit is contained in:
osaajani 2019-11-09 03:38:20 +01:00
parent bb8a114485
commit afb899c003
1 changed files with 6 additions and 1 deletions

View File

@ -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');
}
/**