Add login-recovery-authn-code-input.ftl page

This commit is contained in:
Joseph Garrone
2024-05-11 16:43:18 +02:00
parent 754b5be768
commit 9001e254cc
4 changed files with 81 additions and 1 deletions

View File

@ -36,6 +36,7 @@ const Code = lazy(() => import("keycloakify/login/pages/Code"));
const DeleteAccountConfirm = lazy(() => import("keycloakify/login/pages/DeleteAccountConfirm"));
const FrontchannelLogout = lazy(() => import("keycloakify/login/pages/FrontchannelLogout"));
const LoginRecoveryAuthnCodeConfig = lazy(() => import("keycloakify/login/pages/LoginRecoveryAuthnCodeConfig"));
const LoginRecoveryAuthnCodeInput = lazy(() => import("keycloakify/login/pages/LoginRecoveryAuthnCodeInput"));
type FallbackProps = PageProps<KcContext, I18n> & {
UserProfileFormFields: LazyOrNot<(props: UserProfileFormFieldsProps) => JSX.Element>;
@ -110,6 +111,8 @@ export default function Fallback(props: FallbackProps) {
return <FrontchannelLogout kcContext={kcContext} {...rest} />;
case "login-recovery-authn-code-config.ftl":
return <LoginRecoveryAuthnCodeConfig kcContext={kcContext} {...rest} />;
case "login-recovery-authn-code-input.ftl":
return <LoginRecoveryAuthnCodeInput kcContext={kcContext} {...rest} />;
}
assert<Equals<typeof kcContext, never>>(false);
})()}