first commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controllers;
|
||||
|
||||
class Landing extends BaseController
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
// Если пользователь уже залогинен, редиректим его сразу на выбор орги
|
||||
if (session()->get('isLoggedIn')) {
|
||||
return redirect()->to('/organizations');
|
||||
}
|
||||
|
||||
return $this->renderTwig('landing/index');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user