mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-14 03:52:21 +03:00
Automatically redirect logged in users to the calendar page
This commit is contained in:
parent
e7a757e124
commit
babcc774dd
1 changed files with 5 additions and 0 deletions
|
@ -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'),
|
||||
|
|
Loading…
Reference in a new issue