2023-03-21 05:27:31 +01:00
|
|
|
import type { PageProps } from "keycloakify/login/pages/PageProps";
|
2024-06-05 21:13:58 +02:00
|
|
|
import type { KcContext } from "../KcContext";
|
|
|
|
import type { I18n } from "../i18n";
|
2022-04-22 17:54:47 +03:00
|
|
|
|
2023-03-18 06:14:05 +01:00
|
|
|
export default function LoginIdpLinkEmail(props: PageProps<Extract<KcContext, { pageId: "login-idp-link-email.ftl" }>, I18n>) {
|
|
|
|
const { kcContext, i18n, doUseDefaultCss, Template, classes } = props;
|
2022-04-22 17:54:47 +03:00
|
|
|
|
2022-10-13 11:58:31 +02:00
|
|
|
const { url, realm, brokerContext, idpAlias } = kcContext;
|
|
|
|
|
|
|
|
const { msg } = i18n;
|
|
|
|
|
|
|
|
return (
|
2023-03-21 02:36:13 +01:00
|
|
|
<Template {...{ kcContext, i18n, doUseDefaultCss, classes }} headerNode={msg("emailLinkIdpTitle", idpAlias)}>
|
|
|
|
<p id="instruction1" className="instruction">
|
|
|
|
{msg("emailLinkIdp1", idpAlias, brokerContext.username, realm.displayName)}
|
|
|
|
</p>
|
|
|
|
<p id="instruction2" className="instruction">
|
|
|
|
{msg("emailLinkIdp2")} <a href={url.loginAction}>{msg("doClickHere")}</a> {msg("emailLinkIdp3")}
|
|
|
|
</p>
|
|
|
|
<p id="instruction3" className="instruction">
|
|
|
|
{msg("emailLinkIdp4")} <a href={url.loginAction}>{msg("doClickHere")}</a> {msg("emailLinkIdp5")}
|
|
|
|
</p>
|
|
|
|
</Template>
|
2022-10-13 11:58:31 +02:00
|
|
|
);
|
2023-02-25 18:11:23 +01:00
|
|
|
}
|