From 854ea81ed8cb40852d4b9bbe385bf1ec2675d9cf Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Wed, 25 Jul 2012 12:07:08 +0100 Subject: [PATCH] Fixing hasSession --- src/Oauth2/Database.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Oauth2/Database.php b/src/Oauth2/Database.php index 15f18e97..0ee0931d 100644 --- a/src/Oauth2/Database.php +++ b/src/Oauth2/Database.php @@ -153,22 +153,22 @@ interface Database ); /** - * Return the access token for a given session owner and client combination + * Return the session ID for a given session owner and client combination * * Database query: * * - * SELECT access_token FROM oauth_sessions WHERE client_id = $clientId + * SELECT id FROM oauth_sessions WHERE client_id = $clientId * AND owner_type = $type AND owner_id = $typeId * * * @param string $type The session owner's type * @param string $typeId The session owner's ID * @param string $clientId The client ID - * @return string|null Return the access token as a string if - * found otherwise returns null + * @return string|null Return the session ID as an integer if + * found otherwise returns false */ - public function hasAccessToken( + public function hasSession( $type, $typeId, $clientId