From b40afb9b7db0060cd4af94cf2df14ba483065136 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 20 Apr 2021 21:45:14 +0200 Subject: [PATCH] stages/identification: ignore inactive users Signed-off-by: Jens Langhammer --- authentik/stages/identification/stage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/stages/identification/stage.py b/authentik/stages/identification/stage.py index 87f416789..a09aa689c 100644 --- a/authentik/stages/identification/stage.py +++ b/authentik/stages/identification/stage.py @@ -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: