Commit d23f2e19 authored by Claude Paroz's avatar Claude Paroz

Restored unsuccessful login message

parent 7b562376
......@@ -55,6 +55,10 @@ class LoginView(AuthLoginView):, message)
return response
def form_invalid(self, form):
messages.error(self.request, _("Login unsuccessful. Please verify your username and password."))
return super().form_invalid(form)
def site_register(request):
if request.method == 'POST':
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