From b1eb270881e0b1c95be45228a8adf7ca8bc2c6e6 Mon Sep 17 00:00:00 2001 From: Jason McBrayer Date: Wed, 24 Apr 2019 09:13:12 -0400 Subject: [PATCH] Try to fix up account_id value in accounts_dict for mismatched logins --- brutaldon/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brutaldon/views.py b/brutaldon/views.py index 1c9f7da..7d05d3c 100644 --- a/brutaldon/views.py +++ b/brutaldon/views.py @@ -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})