3 Commits

Author SHA1 Message Date
Jacob Kiers
d2b3281815 Release 1.0.11
This release fixes a little bug in the exception that is thrown when an
invalid token is encountered.

Reported and fixed by @elieux.

Signed-off-by: Jacob Kiers <jacob@alphacomm.nl>
2015-07-16 16:06:29 +02:00
999a007b3b Merge pull request #6 from elieux/master-fix1
Fix variable name when creating an "invalid token" exception
2015-07-16 16:04:50 +02:00
David Macek
3ef8e25bdb Fix variable name when creating an "invalid token" exception 2015-07-16 15:53:27 +02:00
2 changed files with 2 additions and 1 deletions

View File

@@ -8,3 +8,4 @@ Andy Smith authored the original code (http://oauth.googlecode.com/svn/code/php/
* Jacob Kiers (@jacobkiers) * Jacob Kiers (@jacobkiers)
* Alexandru G. (@vimishor) * Alexandru G. (@vimishor)
* Victor Bjelkholm (@VictorBjelkholm) * Victor Bjelkholm (@VictorBjelkholm)
* David Macek (@elieux)

View File

@@ -243,7 +243,7 @@ private function getToken(RequestInterface $request, ConsumerInterface $consumer
$token = $this->data_store->lookupToken($consumer, $token_type, $token_key); $token = $this->data_store->lookupToken($consumer, $token_type, $token_key);
if (!$token) { if (!$token) {
throw new OAuthException("Invalid $token_type token: $token_field"); throw new OAuthException("Invalid $token_type token: $token_key");
} }
return $token; return $token;
} }