Commit 2f0442dd authored by ozzeh's avatar ozzeh

Fix MultiViewDict error

parent a75eeeb5
......@@ -26,7 +26,7 @@ def logout(request):
def callback(request):
token = (
TESTOAuth2Session(state=request.session['oauth_state'])
.fetch_token(code=request.GET['code'])
.fetch_token(code=request.GET.get('code'))
)
user = auth.authenticate(token=token)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment