1
0
mirror of https://gitlab.com/brutaldon/brutaldon.git synced 2024-12-04 14:46:24 -05:00

Fix a crash in login

This commit is contained in:
Jason McBrayer 2019-04-23 18:25:55 -04:00
parent ebf58264e8
commit 8a33d255bd

View File

@ -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)