Update index and create is_connected

This commit is contained in:
osaajani 2019-11-11 00:22:40 +01:00
parent 32ef6b7c90
commit a99e159b1f
5 changed files with 11 additions and 420 deletions

View file

@ -35,7 +35,7 @@ namespace controllers\publics;
*/
public function login()
{
if ($_SESSION['connect'] ?? false)
if (\controllers\internals\Tool::is_connected())
{
return $this->redirect(\descartes\Router::url('Dashboard', 'show'));
}