mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-15 09:47:46 +05:30
SQL query fix
This commit is contained in:
parent
6897e233d4
commit
9b73eab07c
@ -210,7 +210,7 @@ class Session implements SessionInterface
|
|||||||
$db = \ezcDbInstance::get();
|
$db = \ezcDbInstance::get();
|
||||||
|
|
||||||
$stmt = $db->prepare('SELECT session_id FROM `oauth_session_access_tokens` WHERE
|
$stmt = $db->prepare('SELECT session_id FROM `oauth_session_access_tokens` WHERE
|
||||||
access_token = :accessToken AND access_token_expires <= ' . time());
|
access_token = :accessToken AND access_token_expires >= ' . time());
|
||||||
$stmt->bindValue(':accessToken', $accessToken);
|
$stmt->bindValue(':accessToken', $accessToken);
|
||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user