form.is_valid (#4046)

This commit is contained in:
Oliver 2022-12-12 09:25:25 +11:00 committed by GitHub
parent 34c00c53f9
commit d95416c559
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)