generated from garronej/ts-ci
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92 from Tasyp/add-login-idp-link-email
feat: add login-idp-link-email page
- Loading branch information
Showing
5 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { memo } from "react"; | ||
import { Template } from "./Template"; | ||
import type { KcProps } from "./KcProps"; | ||
import type { KcContextBase } from "../getKcContext/KcContextBase"; | ||
import { useKcMessage } from "../i18n/useKcMessage"; | ||
|
||
export const LoginIdpLinkEmail = memo(({ kcContext, ...props }: { kcContext: KcContextBase.LoginIdpLinkEmail } & KcProps) => { | ||
const { url, realm, brokerContext, idpAlias } = kcContext; | ||
|
||
const { msg } = useKcMessage(); | ||
|
||
return ( | ||
<Template | ||
{...{ kcContext, ...props }} | ||
doFetchDefaultThemeResources={true} | ||
headerNode={msg("emailLinkIdpTitle", idpAlias)} | ||
formNode={ | ||
<> | ||
<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> | ||
</> | ||
} | ||
/> | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters