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
1 changed files with 1 additions and 0 deletions

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)