diff --git a/controllers/publics/Connect.php b/controllers/publics/Connect.php index 9861d13..71c5542 100755 --- a/controllers/publics/Connect.php +++ b/controllers/publics/Connect.php @@ -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'); } /**