Automatically redirect logged in users to the calendar page

This commit is contained in:
Alex Tselegidis 2024-03-28 11:08:55 +00:00
parent 3105ae6db5
commit bbf8869d3b
1 changed files with 5 additions and 0 deletions

View File

@ -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'),