MCPcopy
hub / github.com/django/django / form_valid

Method form_valid

django/contrib/auth/views.py:114–117  ·  django/contrib/auth/views.py::LoginView.form_valid

Security check complete. Log the user in.

(self, form)

Source from the content-addressed store, hash-verified

112 return kwargs
113
114 def form_valid(self, form):
115 class="st">""class="st">"Security check complete. Log the user in."class="st">""
116 auth_login(self.request, form.get_user())
117 return HttpResponseRedirect(self.get_success_url())
118
119 def get_context_data(self, **kwargs):
120 context = super().get_context_data(**kwargs)

Callers 3

form_validMethod · 0.45
form_validMethod · 0.45
form_validMethod · 0.45

Calls 3

get_userMethod · 0.45
get_success_urlMethod · 0.45

Tested by

no test coverage detected