From 900f8cae32ce2b7c0d70ebae2f75352f2c63986e Mon Sep 17 00:00:00 2001 From: David Avsajanishvili Date: Thu, 11 Apr 2013 00:35:04 +0100 Subject: [PATCH] Fix veirfier retrieval --- twython_django_oauth/views.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/twython_django_oauth/views.py b/twython_django_oauth/views.py index f976e3e..5a31326 100644 --- a/twython_django_oauth/views.py +++ b/twython_django_oauth/views.py @@ -37,7 +37,6 @@ def begin_auth(request): # Then send them over there, durh. request.session['request_token'] = auth_props - request.session['request_verifier'] = request.GET.get('oauth_verifier', None) return HttpResponseRedirect(auth_props['auth_url']) def thanks(request, redirect_url=settings.LOGIN_REDIRECT_URL): @@ -60,8 +59,7 @@ def thanks(request, redirect_url=settings.LOGIN_REDIRECT_URL): ) # Retrieve the tokens we want... - authorized_tokens = twitter.get_authorized_tokens( - request.session['request_verifier']) + authorized_tokens = twitter.get_authorized_tokens(request.GET['oauth_verifier']) # If they already exist, grab them, login and redirect to a page displaying stuff. try: