From 96f4528e05594f07ed2caab81adf41f8c1bf7e57 Mon Sep 17 00:00:00 2001
From: Nick Pope <nick@nickpope.me.uk>
Date: Wed, 13 Mar 2024 20:35:39 +0000
Subject: [PATCH] 5.0: Update `django.contrib.auth`

---
 django-stubs/contrib/auth/hashers.pyi        | 3 +--
 scripts/stubtest/allowlist_todo_django50.txt | 2 --
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/django-stubs/contrib/auth/hashers.pyi b/django-stubs/contrib/auth/hashers.pyi
index 76769b79a..a80045fa9 100644
--- a/django-stubs/contrib/auth/hashers.pyi
+++ b/django-stubs/contrib/auth/hashers.pyi
@@ -5,6 +5,7 @@ UNUSABLE_PASSWORD_PREFIX: str
 UNUSABLE_PASSWORD_SUFFIX_LENGTH: int
 
 def is_password_usable(encoded: str | None) -> bool: ...
+def verify_password(password: str | None, encoded: str, preferred: str = ...) -> tuple[bool, bool]: ...
 def check_password(password: str | None, encoded: str, setter: Callable | None = ..., preferred: str = ...) -> bool: ...
 async def acheck_password(
     password: str | None, encoded: str, setter: Callable | None = ..., preferred: str = ...
@@ -58,5 +59,3 @@ class UnsaltedSHA1PasswordHasher(BasePasswordHasher):
 
 class UnsaltedMD5PasswordHasher(BasePasswordHasher):
     def decode(self, encoded: str) -> dict[str, str | None]: ...
-
-class CryptPasswordHasher(BasePasswordHasher): ...
diff --git a/scripts/stubtest/allowlist_todo_django50.txt b/scripts/stubtest/allowlist_todo_django50.txt
index 25c1b4930..c98e62384 100644
--- a/scripts/stubtest/allowlist_todo_django50.txt
+++ b/scripts/stubtest/allowlist_todo_django50.txt
@@ -31,8 +31,6 @@ django.contrib.admin.sites.AdminSite.get_model_admin
 django.contrib.admin.utils.build_q_object_from_lookup_parameters
 django.contrib.admin.utils.get_last_value_from_parameters
 django.contrib.admin.views.main.ChangeList.get_queryset
-django.contrib.auth.hashers.CryptPasswordHasher
-django.contrib.auth.hashers.verify_password
 django.contrib.contenttypes.fields.GenericForeignKey.get_content_type
 django.contrib.contenttypes.fields.GenericForeignKey.get_prefetch_querysets
 django.contrib.contenttypes.prefetch