Skip to content

Commit

Permalink
Automatically redirect logged in users to the calendar page
Browse files Browse the repository at this point in the history
  • Loading branch information
alextselegidis committed Mar 28, 2024
1 parent e7a757e commit babcc77
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions application/controllers/Login.php
Expand Up @@ -40,6 +40,11 @@ public function __construct()
*/
public function index()
{
if (session('user_id')) {
redirect('calendar');
return;
}

html_vars([
'page_title' => lang('login'),
'base_url' => config('base_url'),
Expand Down

0 comments on commit babcc77

Please sign in to comment.