diff options
author | Simon Rettberg | 2023-10-06 18:26:22 +0200 |
---|---|---|
committer | Simon Rettberg | 2023-10-06 18:26:22 +0200 |
commit | e5be4e97ffc41ca3b0386651a626b781a3637a85 (patch) | |
tree | 20152d35607de272edae44725efba13f21da85a1 /pam.php | |
parent | api: Hard-code bogus name/mail for read only (STUDENT) login (diff) | |
download | bwlp-webadmin-e5be4e97ffc41ca3b0386651a626b781a3637a85.tar.gz bwlp-webadmin-e5be4e97ffc41ca3b0386651a626b781a3637a85.tar.xz bwlp-webadmin-e5be4e97ffc41ca3b0386651a626b781a3637a85.zip |
Update for PHP 8.2
Diffstat (limited to 'pam.php')
-rw-r--r-- | pam.php | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -17,13 +17,14 @@ $action = Request::any('action'); // if ($action === 'browser') { // Browser requesting a token - Header('Location: shib/client_auth.php?token=' . (string)Request::any('token')); + Header('Location: shib/client_auth.php?token=' . Request::any('token')); exit; } if ($action === 'verify') { // pam stack on client trying to verify - $row = Database::queryFirst("SELECT username FROM client_token WHERE token = :token AND dateline > UNIX_TIMESTAMP() - 300", ['token' => (string)Request::any('token')]); + $row = Database::queryFirst("SELECT username FROM client_token WHERE token = :token AND dateline > UNIX_TIMESTAMP() - 300", + ['token' => (string)Request::any('token')]); Header('Content-Type: text/plain; charset=utf-8'); if ($row === false) { die("ERROR=Invalid token"); |