From de681b1ebfafa54c9ac826c07bd86e27b808a93c Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Sun, 6 Apr 2014 19:14:16 +0100 Subject: [PATCH] RefreshToken is already taken so use RT --- src/League/OAuth2/Server/Grant/Password.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/League/OAuth2/Server/Grant/Password.php b/src/League/OAuth2/Server/Grant/Password.php index 80901678..46bc8160 100644 --- a/src/League/OAuth2/Server/Grant/Password.php +++ b/src/League/OAuth2/Server/Grant/Password.php @@ -14,7 +14,7 @@ namespace League\OAuth2\Server\Grant; use League\OAuth2\Server\AuthorizationServer; use League\OAuth2\Server\Entity\AccessToken; use League\OAuth2\Server\Entity\Client; -use League\OAuth2\Server\Entity\RefreshToken; +use League\OAuth2\Server\Entity\RefreshToken as RT; use League\OAuth2\Server\Entity\Session; use League\OAuth2\Server\Entity\Scope; use League\OAuth2\Server\Exception\ClientException; @@ -164,7 +164,7 @@ class Password extends AbstractGrant // Associate a refresh token if set if ($this->server->hasGrantType('refresh_token')) { - $refreshToken = new RefreshToken($this->server); + $refreshToken = new RT($this->server); $refreshToken->setToken(SecureKey::make()); $refreshToken->setExpireTime($this->server->getGrantType('refresh_token')->getRefreshTokenTTL() + time()); $response['refresh_token'] = $refreshToken->getToken();