From d95416c5592c122685db1227e35bddc47be7dbe5 Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 12 Dec 2022 09:25:25 +1100 Subject: [PATCH] form.is_valid (#4046) --- InvenTree/InvenTree/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/InvenTree/InvenTree/views.py b/InvenTree/InvenTree/views.py index ecb89af275..13f098ee7d 100644 --- a/InvenTree/InvenTree/views.py +++ b/InvenTree/InvenTree/views.py @@ -642,6 +642,9 @@ class CustomLoginView(LoginView): # Initiate form form = self.get_form_class()(request.GET.dict(), request=request) + # Validate form data + form.is_valid() + # Try to login form.full_clean() return form.login(request)