adasdsa
This commit is contained in:
@@ -6,6 +6,7 @@ require_once dirname(__DIR__, 3) . '/src/App/bootstrap.php';
|
||||
|
||||
use App\ConfigLoader;
|
||||
use App\AccountGate;
|
||||
use App\AuthStatusRedirect;
|
||||
use App\KeycloakAuth;
|
||||
|
||||
session_start();
|
||||
@@ -59,7 +60,8 @@ if ($state === '' || $expectedState === '' || !hash_equals($expectedState, $stat
|
||||
$target = (string) ($accountCheck['state'] ?? '') === 'pending'
|
||||
? '/auth/pending/?username=' . urlencode($username)
|
||||
: '/auth/inactive/?message=' . urlencode((string) ($accountCheck['message'] ?? 'Dieses Konto ist noch nicht freigeschaltet.'));
|
||||
$logoutUrl = $auth->logoutUrl($target, (string) ($tokenPayload['id_token'] ?? ''));
|
||||
AuthStatusRedirect::set($target);
|
||||
$logoutUrl = $auth->logoutUrl('/', (string) ($tokenPayload['id_token'] ?? ''));
|
||||
$auth->logout();
|
||||
header('Location: ' . $logoutUrl, true, 302);
|
||||
exit;
|
||||
|
||||
Reference in New Issue
Block a user