From bbf8869d3bca94f6b7c068a6b26a9aae486f58fd Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Thu, 28 Mar 2024 11:08:55 +0000 Subject: [PATCH] Automatically redirect logged in users to the calendar page --- application/controllers/Login.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/application/controllers/Login.php b/application/controllers/Login.php index f7945144..735d2d23 100644 --- a/application/controllers/Login.php +++ b/application/controllers/Login.php @@ -40,6 +40,11 @@ class Login extends EA_Controller */ public function index() { + if (session('user_id')) { + redirect('calendar'); + return; + } + html_vars([ 'page_title' => lang('login'), 'base_url' => config('base_url'),