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

View file

@ -40,6 +40,11 @@ class Login extends EA_Controller
*/ */
public function index() public function index()
{ {
if (session('user_id')) {
redirect('calendar');
return;
}
html_vars([ html_vars([
'page_title' => lang('login'), 'page_title' => lang('login'),
'base_url' => config('base_url'), 'base_url' => config('base_url'),