From f61736e3d133d9b41d3870f3c7412d19d1b5a8b3 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 28 Aug 2021 12:54:10 +0200 Subject: [PATCH] stages/identification: add error handling when password isn't set Signed-off-by: Jens Langhammer --- authentik/stages/identification/stage.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/authentik/stages/identification/stage.py b/authentik/stages/identification/stage.py index 21654ce7e..48e7563ae 100644 --- a/authentik/stages/identification/stage.py +++ b/authentik/stages/identification/stage.py @@ -96,7 +96,9 @@ class IdentificationChallengeResponse(ChallengeResponse): # No password stage select, don't validate the password return attrs - password = attrs["password"] + password = attrs.get("password", None) + if not password: + LOGGER.warning("Password not set for ident+auth attempt") try: user = authenticate( self.stage.request,