Commit 698e2d66 authored by Claude Paroz's avatar Claude Paroz

Don't forget origin page after a failed login

parent eb65a984
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment