mirror of
https://github.com/django/django.git
synced 2024-12-01 15:42:04 +01:00
Removed AuthenticationForm.check_for_test_cookie() as per deprecation TL.
This commit is contained in:
parent
4f6be9a0c4
commit
f02a703ca6
@ -200,10 +200,6 @@ class AuthenticationForm(forms.Form):
|
|||||||
)
|
)
|
||||||
return self.cleaned_data
|
return self.cleaned_data
|
||||||
|
|
||||||
def check_for_test_cookie(self):
|
|
||||||
warnings.warn("check_for_test_cookie is deprecated; ensure your login "
|
|
||||||
"view is CSRF-protected.", DeprecationWarning)
|
|
||||||
|
|
||||||
def get_user_id(self):
|
def get_user_id(self):
|
||||||
if self.user_cache:
|
if self.user_cache:
|
||||||
return self.user_cache.id
|
return self.user_cache.id
|
||||||
|
Loading…
Reference in New Issue
Block a user