fix: Prune
This commit is contained in:
parent
fb4acc62c4
commit
19ba0873f5
@ -12,12 +12,9 @@ export default function Sessions(props: PageProps<Extract<KcContext, { pageId: "
|
|||||||
classes
|
classes
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log({ kcContext });
|
|
||||||
const { url, stateChecker, sessions } = kcContext;
|
const { url, stateChecker, sessions } = kcContext;
|
||||||
|
|
||||||
const { msg } = i18n;
|
const { msg } = i18n;
|
||||||
console.log({ sdf: kcContext.locale?.supported });
|
|
||||||
console.log({ asdf: "asdf" });
|
|
||||||
return (
|
return (
|
||||||
<Template {...{ kcContext, i18n, doUseDefaultCss, classes }} active="sessions">
|
<Template {...{ kcContext, i18n, doUseDefaultCss, classes }} active="sessions">
|
||||||
<div className={getClassName("kcContentWrapperClass")}>
|
<div className={getClassName("kcContentWrapperClass")}>
|
||||||
|
@ -7,6 +7,7 @@ import { MessageKey } from "keycloakify/account/i18n/i18n";
|
|||||||
|
|
||||||
export default function Totp(props: PageProps<Extract<KcContext, { pageId: "totp.ftl" }>, I18n>) {
|
export default function Totp(props: PageProps<Extract<KcContext, { pageId: "totp.ftl" }>, I18n>) {
|
||||||
const { kcContext, i18n, doUseDefaultCss, Template, classes } = props;
|
const { kcContext, i18n, doUseDefaultCss, Template, classes } = props;
|
||||||
|
|
||||||
const { getClassName } = useGetClassName({
|
const { getClassName } = useGetClassName({
|
||||||
doUseDefaultCss,
|
doUseDefaultCss,
|
||||||
classes
|
classes
|
||||||
@ -78,7 +79,7 @@ export default function Totp(props: PageProps<Extract<KcContext, { pageId: "totp
|
|||||||
<p>{msg("totpStep1")}</p>
|
<p>{msg("totpStep1")}</p>
|
||||||
|
|
||||||
<ul id="kc-totp-supported-apps">
|
<ul id="kc-totp-supported-apps">
|
||||||
{totp.supportedApplications.map(app => (
|
{totp.supportedApplications?.map(app => (
|
||||||
<li key={app}>{msg(app as MessageKey)}</li>
|
<li key={app}>{msg(app as MessageKey)}</li>
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
@ -99,28 +100,26 @@ export default function Totp(props: PageProps<Extract<KcContext, { pageId: "totp
|
|||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>{msg("totpManualStep3")}</p>
|
<p>{msg("totpManualStep3")}</p>
|
||||||
<p>
|
<ul>
|
||||||
<ul>
|
<li id="kc-totp-type">
|
||||||
<li id="kc-totp-type">
|
{msg("totpType")}: {msg(`totp.${totp.policy.type}`)}
|
||||||
{msg("totpType")}: {msg(`totp.${totp.policy.type}`)}
|
</li>
|
||||||
|
<li id="kc-totp-algorithm">
|
||||||
|
{msg("totpAlgorithm")}: {algToKeyUriAlg?.[totp.policy.algorithm] ?? totp.policy.algorithm}
|
||||||
|
</li>
|
||||||
|
<li id="kc-totp-digits">
|
||||||
|
{msg("totpDigits")}: {totp.policy.digits}
|
||||||
|
</li>
|
||||||
|
{totp.policy.type === "totp" ? (
|
||||||
|
<li id="kc-totp-period">
|
||||||
|
{msg("totpInterval")}: {totp.policy.period}
|
||||||
</li>
|
</li>
|
||||||
<li id="kc-totp-algorithm">
|
) : (
|
||||||
{msg("totpAlgorithm")}: {algToKeyUriAlg?.[totp.policy.algorithm] ?? totp.policy.algorithm}
|
<li id="kc-totp-counter">
|
||||||
|
{msg("totpCounter")}: {totp.policy.initialCounter}
|
||||||
</li>
|
</li>
|
||||||
<li id="kc-totp-digits">
|
)}
|
||||||
{msg("totpDigits")}: {totp.policy.digits}
|
</ul>
|
||||||
</li>
|
|
||||||
{totp.policy.type === "totp" ? (
|
|
||||||
<li id="kc-totp-period">
|
|
||||||
{msg("totpInterval")}: {totp.policy.period}
|
|
||||||
</li>
|
|
||||||
) : (
|
|
||||||
<li id="kc-totp-counter">
|
|
||||||
{msg("totpCounter")}: {totp.policy.initialCounter}
|
|
||||||
</li>
|
|
||||||
)}
|
|
||||||
</ul>
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user