1
0
mirror of https://gitlab.com/brutaldon/brutaldon.git synced 2024-11-02 16:37:19 -04:00

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

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