From 85c42db3552ec3527147456595a077b79b5c609d Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Fri, 1 Feb 2013 16:02:04 +0000 Subject: [PATCH] Variable name fix --- src/OAuth2/Grant/ClientCredentials.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/OAuth2/Grant/ClientCredentials.php b/src/OAuth2/Grant/ClientCredentials.php index 0881777e..0489d38d 100644 --- a/src/OAuth2/Grant/ClientCredentials.php +++ b/src/OAuth2/Grant/ClientCredentials.php @@ -62,14 +62,14 @@ class ClientCredentials implements GrantTypeInterface { $accessTokenExpiresIn = AuthServer::getExpiresIn(); // Delete any existing sessions just to be sure - AuthServer::getStorage('session')->delete($params['client_id'], 'client', $params['client_id']); + AuthServer::getStorage('session')->delete($authParams['client_id'], 'client', $authParams['client_id']); // Create a new session AuthServer::getStorage('session')->newSession( - $params['client_id'], + $authParams['client_id'], null, 'client', - $params['client_id'], + $authParams['client_id'], null, $accessToken, $refreshToken,