git.cweiske.de
/
grauphel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make sync work with conboy
[grauphel.git]
/
lib
/
oauth.php
diff --git
a/lib/oauth.php
b/lib/oauth.php
index d6c72e835daf2123cc6f95156b2e1d7a662f986c..6900c20305e0fba6ca68d8bd79886c91d0b6cfc6 100644
(file)
--- a/
lib/oauth.php
+++ b/
lib/oauth.php
@@
-98,6
+98,11
@@
class OAuth
public function accessTokenHandler(\OAuthProvider $provider)
{
public function accessTokenHandler(\OAuthProvider $provider)
{
+ if ($provider->token == '') {
+ //conboy sends empty token when not authed yet
+ return OAUTH_PARAMETER_ABSENT;
+ }
+
$token = $this->tokens->load('access', $provider->token);
$provider->token_secret = $token->secret;
return OAUTH_OK;
$token = $this->tokens->load('access', $provider->token);
$provider->token_secret = $token->secret;
return OAUTH_OK;