mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-25 09:23:08 +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()
|
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'),
|
||||||
|
|
Loading…
Reference in a new issue