diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2014-08-21 23:00:02 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2014-08-21 23:00:02 +0200 |
| commit | 381f04b7e408baccc64588a865bff33bcd87e152 (patch) | |
| tree | 4237ebdf713c7e5b6260f4dd190430fd375836f7 /lib | |
| parent | 259d014ef83ac9f4d7b85648758c93d0fe657777 (diff) | |
| download | grauphel-381f04b7e408baccc64588a865bff33bcd87e152.tar.gz grauphel-381f04b7e408baccc64588a865bff33bcd87e152.zip | |
make sync work with conboy
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/oauth.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/oauth.php b/lib/oauth.php index d6c72e8..6900c20 100644 --- a/lib/oauth.php +++ b/lib/oauth.php @@ -98,6 +98,11 @@ class OAuth 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; |
