Variable name fix

This commit is contained in:
Alex Bilbie 2013-02-01 16:02:04 +00:00
parent a81c486e0e
commit 85c42db355

View File

@ -62,14 +62,14 @@ class ClientCredentials implements GrantTypeInterface {
$accessTokenExpiresIn = AuthServer::getExpiresIn(); $accessTokenExpiresIn = AuthServer::getExpiresIn();
// Delete any existing sessions just to be sure // 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 // Create a new session
AuthServer::getStorage('session')->newSession( AuthServer::getStorage('session')->newSession(
$params['client_id'], $authParams['client_id'],
null, null,
'client', 'client',
$params['client_id'], $authParams['client_id'],
null, null,
$accessToken, $accessToken,
$refreshToken, $refreshToken,