mirror of
https://gitlab.com/brutaldon/brutaldon.git
synced 2024-12-04 14:46:24 -05:00
Fix a 500 error on login
This commit is contained in:
parent
816458a86a
commit
e913213e77
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user