mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-28 01:22:25 +03:00
Automatically redirect logged in users to the calendar page
This commit is contained in:
parent
3105ae6db5
commit
bbf8869d3b
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