summaryrefslogtreecommitdiff
path: root/LedgerSMB/Session
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB/Session')
-rwxr-xr-xLedgerSMB/Session/DB.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/LedgerSMB/Session/DB.pm b/LedgerSMB/Session/DB.pm
index 592d0922..849b4ddf 100755
--- a/LedgerSMB/Session/DB.pm
+++ b/LedgerSMB/Session/DB.pm
@@ -43,7 +43,6 @@ sub session_check {
"SELECT u.username, s.transaction_id
FROM session as s, users as u
WHERE s.session_id = ?
- AND s.token = ?
AND s.users_id = u.id
AND s.last_used > now() - ?::interval"
);
@@ -73,7 +72,7 @@ sub session_check {
$timeout = "$myconfig{timeout} seconds";
}
- $checkQuery->execute( $sessionID, $token, $timeout )
+ $checkQuery->execute( $sessionID, $timeout )
|| $form->dberror(
__FILE__ . ':' . __LINE__ . ': Looking for session: ' );
my $sessionValid = $checkQuery->rows;