Return a response in worst old_login case

This commit is contained in:
Jason McBrayer 2019-04-24 09:20:49 -04:00
parent f2abaaa885
commit 1c13a9a04b
1 changed files with 1 additions and 0 deletions

View File

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