summaryrefslogtreecommitdiffstats
path: root/pam.php
diff options
context:
space:
mode:
Diffstat (limited to 'pam.php')
-rw-r--r--pam.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/pam.php b/pam.php
index 2a74bc3..20c5a85 100644
--- a/pam.php
+++ b/pam.php
@@ -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");