From 1d129e4af87404c9a75e36005e51cab12fe71afd Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Wed, 25 Jul 2012 12:06:15 +0100 Subject: [PATCH] Reworked query of hasSession --- src/Oauth2/Database.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Oauth2/Database.php b/src/Oauth2/Database.php index 6d6a5159..4a3b42a5 100644 --- a/src/Oauth2/Database.php +++ b/src/Oauth2/Database.php @@ -76,16 +76,14 @@ interface Database * * UPDATE oauth_sessions SET auth_code = $authCode, access_token = * $accessToken, stage = $stage, last_updated = UNIX_TIMESTAMP(NOW()) WHERE - * client_id = $clientId AND owner_type = $type AND owner_id = $typeId + * id = $sessionId * * - * @param string $clientId The client ID - * @param string $type The session owner's type (default = "user") - * @param string $typeId The session owner's ID (default = "null") + * @param string $sessionId The session ID * @param string $authCode The authorisation code (default = "null") * @param string $accessToken The access token (default = "null") * @param string $stage The stage of the session (default ="request") - * @return [type] [description] + * @return void */ public function updateSession( $clientId,