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