diff --git a/apps/auth1/authentication.py b/apps/auth1/authentication.py index 2767ae2c..9aeffda0 100755 --- a/apps/auth1/authentication.py +++ b/apps/auth1/authentication.py @@ -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).