fix login
Deploy / deploy (push) Successful in 38s

This commit is contained in:
2026-05-07 19:51:34 +02:00
parent c7c11df629
commit 9638f782c9
+4
View File
@@ -12,6 +12,10 @@ $success = '';
// Detect the correct callback URL
$scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'https' : 'http';
$host = $_SERVER['HTTP_HOST'] ?? 'localhost:8080';
// If no port in host and not standard port, add it
if (strpos($host, ':') === false && !in_array($_SERVER['SERVER_PORT'] ?? 80, [80, 443])) {
$host .= ':' . $_SERVER['SERVER_PORT'];
}
$callbackUrl = "$scheme://$host/login.php";
if (isset($_GET['auth'])) {