mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-05-01 05:46:28 +02:00
add redirect to dashboard if already logged
This commit is contained in:
parent
bb8a114485
commit
afb899c003
1 changed files with 6 additions and 1 deletions
|
@ -36,7 +36,12 @@ namespace controllers\publics;
|
||||||
*/
|
*/
|
||||||
public function login()
|
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…
Add table
Add a link
Reference in a new issue