diff --git a/django/contrib/auth/forms.py b/django/contrib/auth/forms.py index 2f67dc15ec..42addc190e 100644 --- a/django/contrib/auth/forms.py +++ b/django/contrib/auth/forms.py @@ -214,11 +214,6 @@ class AuthenticationForm(forms.Form): code='inactive', ) - def get_user_id(self): - if self.user_cache: - return self.user_cache.id - return None - def get_user(self): return self.user_cache