feat: base auth authenticate移除不必须的employee

This commit is contained in:
caoqianming 2024-08-26 15:07:23 +08:00
parent 165052aa8b
commit 94774a6187
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ class CustomBackend(ModelBackend):
return
try:
user = UserModel._default_manager.get(
Q(username=username) | Q(phone=username) | Q(employee__id_number=username))
Q(username=username) | Q(phone=username))
except UserModel.DoesNotExist:
# Run the default password hasher once to reduce the timing
# difference between an existing and a nonexistent user (#20760).