stages/identification: ignore inactive users

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-04-20 21:45:14 +02:00
parent 1f783dfc01
commit b40afb9b7d
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ class IdentificationStageView(ChallengeStageView):
def get_user(self, uid_value: str) -> Optional[User]:
"""Find user instance. Returns None if no user was found."""
current_stage: IdentificationStage = self.executor.current_stage
query = Q()
query = Q(is_active=True)
for search_field in current_stage.user_fields:
model_field = search_field
if current_stage.case_insensitive_matching: