Adding so many things.

This commit is contained in:
dan612
2026-03-22 13:23:31 -04:00
parent 7d5904e925
commit b9e362497a
10 changed files with 95 additions and 41 deletions

View File

@@ -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)