Adding so many things.
This commit is contained in:
@@ -25,7 +25,12 @@ if (!$router->routeExists($path)) {
|
||||
// now we dont have to do this in every controller.
|
||||
// Still allow login on homepage.
|
||||
$request = new Request();
|
||||
$allowed_paths = ['/', '/user-login'];
|
||||
$allowed_paths = [
|
||||
'/',
|
||||
'/user-login',
|
||||
'/api/v1/webhook'
|
||||
];
|
||||
|
||||
if (
|
||||
!$request->getCookie('ORIGOSESS') &&
|
||||
!in_array($path, $allowed_paths)
|
||||
|
||||
Reference in New Issue
Block a user