From acfadc899378e0177120f4fa41fd1a13af1b6477 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Sun, 5 May 2013 18:01:00 +0100 Subject: [PATCH] Actually fixed the bug in validateAccessToken this time --- src/OAuth2/Storage/PDO/Session.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OAuth2/Storage/PDO/Session.php b/src/OAuth2/Storage/PDO/Session.php index 5c92c59e..6af2d107 100644 --- a/src/OAuth2/Storage/PDO/Session.php +++ b/src/OAuth2/Storage/PDO/Session.php @@ -209,7 +209,7 @@ class Session implements SessionInterface { $db = \ezcDbInstance::get(); - $stmt = $db->prepare('SELECT session_access_token_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()); $stmt->bindValue(':accessToken', $accessToken); $stmt->execute();