From 36229f4224ec1f74e75c1c80ba666e0e9f885fb9 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 23 Feb 2023 16:57:46 +0100 Subject: [PATCH] blueprints: improve error handling in example flow closes #4714 Signed-off-by: Jens Langhammer --- blueprints/example/flows-login-2fa.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blueprints/example/flows-login-2fa.yaml b/blueprints/example/flows-login-2fa.yaml index d3a708bed..9a11cfc90 100644 --- a/blueprints/example/flows-login-2fa.yaml +++ b/blueprints/example/flows-login-2fa.yaml @@ -19,7 +19,7 @@ entries: model: authentik_policies_expression.expressionpolicy attrs: expression: | - return context["auth_method"] != "app_password" + return context.get("auth_method") != "app_password" - identifiers: name: default-authentication-login id: default-authentication-login