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