2
0
mirror of https://github.com/jfmcbrayer/brutaldon synced 2024-12-23 21:51:43 +01:00

Fix a 500 error on login

This commit is contained in:
Jason McBrayer 2018-08-29 08:34:05 -04:00
parent 816458a86a
commit e913213e77

View File

@ -204,6 +204,7 @@ def oauth_callback(request):
access_token = access_token,
client = Client.objects.get(api_base_id=request.session['instance']),
preferences = preferences)
account.save()
request.session['user'] = user
request.session['username'] = user.username + '@' + request.session['instance_hostname']
return redirect(home)