mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
form.is_valid (#4046)
This commit is contained in:
parent
34c00c53f9
commit
d95416c559
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user