mirror of
https://github.com/jfmcbrayer/brutaldon
synced 2025-01-09 13:42:45 +01:00
Return a response in worst old_login case
This commit is contained in:
parent
f2abaaa885
commit
1c13a9a04b
@ -426,6 +426,7 @@ def old_login(request):
|
|||||||
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.session['accounts_dict'] = accounts_dict
|
request.session['accounts_dict'] = accounts_dict
|
||||||
|
return redirect(home)
|
||||||
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})
|
||||||
|
Loading…
Reference in New Issue
Block a user