Correct last commit

This commit is contained in:
Jason McBrayer 2019-04-24 09:18:51 -04:00
parent b1eb270881
commit f2abaaa885

View File

@ -425,7 +425,7 @@ def old_login(request):
except IntegrityError: except IntegrityError:
account = Account.objects.get(username=account.username) account = Account.objects.get(username=account.username)
accounts_dict[account.username] = { 'account_id': account.id, 'user': user } accounts_dict[account.username] = { 'account_id': account.id, 'user': user }
request.settings['account_dict'] = accounts_dict request.session['accounts_dict'] = accounts_dict
except Exception as ex: except Exception as ex:
form.add_error('', ex) form.add_error('', ex)
return render(request, 'setup/login.html', {'form': form}) return render(request, 'setup/login.html', {'form': form})