Merge pull request #268 from Hywan/fix_example_storage_authcode

Do not forget to set the expire time
This commit is contained in:
Alex Bilbie 2014-12-02 10:37:05 +00:00
commit 9ec1380889

View File

@ -24,6 +24,7 @@ class AuthCodeStorage extends AbstractStorage implements AuthCodeInterface
$token = new AuthCodeEntity($this->server); $token = new AuthCodeEntity($this->server);
$token->setId($result[0]['auth_code']); $token->setId($result[0]['auth_code']);
$token->setRedirectUri($result[0]['client_redirect_uri']); $token->setRedirectUri($result[0]['client_redirect_uri']);
$token->setExpireTime($result[0]['expire_time']);
return $token; return $token;
} }