From 22c1dea74657f636dd049ede6c7751a5c725c156 Mon Sep 17 00:00:00 2001 From: Brian Miller Date: Wed, 29 Sep 2021 08:12:03 -0500 Subject: [PATCH] Allow redirect prop to be passed into login form --- packages/marko-web-identity-x/components/form-login.marko | 1 + packages/marko-web-identity-x/components/marko.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/marko-web-identity-x/components/form-login.marko b/packages/marko-web-identity-x/components/form-login.marko index 454f140b1..ea791a561 100644 --- a/packages/marko-web-identity-x/components/form-login.marko +++ b/packages/marko-web-identity-x/components/form-login.marko @@ -9,6 +9,7 @@ $ const { identityX } = req; activeUser: user, endpoints: identityX.config.getEndpoints(), buttonLabels: input.buttonLabels, + redirect: input.redirect, consentPolicy: get(application, "organization.consentPolicy"), regionalConsentPolicies: get(application, "organization.regionalConsentPolicies"), appContextId: identityX.config.get("appContextId"), diff --git a/packages/marko-web-identity-x/components/marko.json b/packages/marko-web-identity-x/components/marko.json index 626946aa1..648f28101 100644 --- a/packages/marko-web-identity-x/components/marko.json +++ b/packages/marko-web-identity-x/components/marko.json @@ -17,7 +17,8 @@ }, "": { "template": "./form-login.marko", - "@button-labels": "object" + "@button-labels": "object", + "@redirect": "string" }, "": { "template": "./form-logout.marko"