[damned-lies] Don't forget origin page after a failed login
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Don't forget origin page after a failed login
- Date: Tue, 19 May 2015 15:20:30 +0000 (UTC)
commit 698e2d663203a74aecb5cace6fd84122716bced7
Author: Claude Paroz <claude 2xlibre net>
Date: Tue May 19 17:19:42 2015 +0200
Don't forget origin page after a failed login
common/views.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/common/views.py b/common/views.py
index 15950b3..19f6763 100644
--- a/common/views.py
+++ b/common/views.py
@@ -82,6 +82,7 @@ def site_login(request):
messages.error(request, _("We're sorry, but your account has been disabled."))
else:
messages.error(request, _("Login unsuccessful. Please verify your username and password."))
+ referer = request.POST['referer']
else:
referer = request.META.get('HTTP_REFERER', None)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]