mirror of
http://git.carcosa.net/jmcbray/brutaldon.git
synced 2024-11-23 15:23:52 -05: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')
|
accounts_dict = request.session.get('accounts_dict')
|
||||||
if not accounts_dict:
|
if not accounts_dict:
|
||||||
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
|
request.session['accounts_dict'] = accounts_dict
|
||||||
|
|
||||||
return redirect(home)
|
return redirect(home)
|
||||||
|
Loading…
Reference in New Issue
Block a user