X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/f67de73a6cabbef2d84dc79706cbeb4441800860..8132fc186eb0c5fd02c86828c3a4735754296d02:/apps/apiclient/views.py?ds=sidebyside diff --git a/apps/apiclient/views.py b/apps/apiclient/views.py index fb3f5077..239682a5 100644 --- a/apps/apiclient/views.py +++ b/apps/apiclient/views.py @@ -23,7 +23,7 @@ def oauth(request, beta=False): request_token = dict(cgi.parse_qsl(content)) - conn = OAuthConnection.get(request.user) + conn = OAuthConnection.get(request.user, beta) # this might reset existing auth! conn.access = False conn.token = request_token['oauth_token'] @@ -45,7 +45,7 @@ def oauth_callback(request, beta=False): return HttpResponse("OAuth consumer not configured.") oauth_verifier = request.GET.get('oauth_verifier') - conn = OAuthConnection.get(request.user) + conn = OAuthConnection.get(request.user, beta) token = oauth2.Token(conn.token, conn.token_secret) token.set_verifier(oauth_verifier) client = oauth2.Client(wl_consumer, token)