asdasd
This commit is contained in:
@@ -12,10 +12,10 @@ session_start();
|
|||||||
$projectRoot = dirname(__DIR__, 3);
|
$projectRoot = dirname(__DIR__, 3);
|
||||||
$auth = new KeycloakAuth(ConfigLoader::load($projectRoot, 'keycloak'));
|
$auth = new KeycloakAuth(ConfigLoader::load($projectRoot, 'keycloak'));
|
||||||
$logoutUrl = null;
|
$logoutUrl = null;
|
||||||
$target = trim((string) ($_GET['target'] ?? '/auth/keycloak'));
|
$target = trim((string) ($_GET['target'] ?? '/'));
|
||||||
|
|
||||||
if ($target === '' || !str_starts_with($target, '/')) {
|
if ($target === '' || !str_starts_with($target, '/')) {
|
||||||
$target = '/auth/keycloak';
|
$target = '/';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($auth->isConfigured()) {
|
if ($auth->isConfigured()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user