mirror of
https://gitlab.com/brutaldon/brutaldon.git
synced 2024-11-02 16:37:19 -04:00
Fix a crash in login
This commit is contained in:
parent
ebf58264e8
commit
8a33d255bd
@ -377,7 +377,7 @@ def old_login(request):
|
||||
accounts_dict = request.session.get('accounts_dict')
|
||||
if not accounts_dict:
|
||||
accounts_dict = {}
|
||||
accounts_dict[account.username] = { account_id: account.id, user: user }
|
||||
accounts_dict[account.username] = { 'account_id': account.id, 'user': user }
|
||||
request.session['accounts_dict'] = accounts_dict
|
||||
|
||||
return redirect(home)
|
||||
|
Loading…
Reference in New Issue
Block a user