diff options
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"); |