From 381f04b7e408baccc64588a865bff33bcd87e152 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Thu, 21 Aug 2014 23:00:02 +0200 Subject: make sync work with conboy --- lib/oauth.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/oauth.php') 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; -- cgit v1.2.3