Fix redirect to /client if no login key is set

This commit is contained in:
wrongecho 2025-01-28 11:24:08 +00:00
parent 39adab734b
commit 20a862f020
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ $config_login_remember_me_expire = intval($row['config_login_remember_me_expire'
// If no/incorrect 'key' is supplied, send to client portal instead
if ($config_login_key_required) {
if (!isset($_GET['key']) || $_GET['key'] !== $config_login_key_secret) {
header("Location: portal");
header("Location: client");
exit();
}
}