mirror of
http://git.carcosa.net/jmcbray/brutaldon.git
synced 2024-11-23 07:13:52 -05:00
Try to fix up account_id value in accounts_dict for mismatched logins
This commit is contained in:
parent
a427273f63
commit
b1eb270881
@ -424,8 +424,8 @@ def old_login(request):
|
||||
return redirect(home)
|
||||
except IntegrityError:
|
||||
account = Account.objects.get(username=account.username)
|
||||
accounts_dict[account.username]['account_id'] = account.id
|
||||
request.session['accounts_dict'] = accounts_dict
|
||||
accounts_dict[account.username] = { 'account_id': account.id, 'user': user }
|
||||
request.settings['account_dict'] = accounts_dict
|
||||
except Exception as ex:
|
||||
form.add_error('', ex)
|
||||
return render(request, 'setup/login.html', {'form': form})
|
||||
|
Loading…
Reference in New Issue
Block a user