From 756aee506289d31850480f8e31506395f05ab041 Mon Sep 17 00:00:00 2001 From: Jonas Hungershausen Date: Mon, 18 Sep 2023 14:35:27 +0200 Subject: [PATCH] chore: add extraContext object --- src/routes/login.ts | 1 + src/routes/registration.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/routes/login.ts b/src/routes/login.ts index 11667b88..b45bd8d1 100644 --- a/src/routes/login.ts +++ b/src/routes/login.ts @@ -197,6 +197,7 @@ export const createLoginRoute: RouteCreator = { locale: res.locals.lang }, ), extraPartial: extraPartials?.login, + extraContext: res.locals.extraContext, }) }) .catch(redirectOnSoftError(res, next, initFlowUrl)) diff --git a/src/routes/registration.ts b/src/routes/registration.ts index 6cb1c7cb..37f74710 100644 --- a/src/routes/registration.ts +++ b/src/routes/registration.ts @@ -109,6 +109,7 @@ export const createRegistrationRoute: RouteCreator = { locale: res.locals.lang }, ), extraPartial: extraPartials?.registration, + extraContext: res.locals.extraContext, }) }) .catch(redirectOnSoftError(res, next, initFlowUrl))