diff --git a/twython_django_oauth/views.py b/twython_django_oauth/views.py index 9788d04..f976e3e 100644 --- a/twython_django_oauth/views.py +++ b/twython_django_oauth/views.py @@ -37,6 +37,7 @@ 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,7 +61,7 @@ def thanks(request, redirect_url=settings.LOGIN_REDIRECT_URL): # Retrieve the tokens we want... authorized_tokens = twitter.get_authorized_tokens( - request.session['request_token']['oauth_verifier']) + request.session['request_verifier']) # If they already exist, grab them, login and redirect to a page displaying stuff. try: