fmt
This commit is contained in:
parent
43165eeed2
commit
179cd84298
@ -6,7 +6,7 @@ import { useGetClassName } from "keycloakify/login/lib/useGetClassName";
|
|||||||
import type { KcContext } from "../kcContext";
|
import type { KcContext } from "../kcContext";
|
||||||
import type { I18n } from "../i18n";
|
import type { I18n } from "../i18n";
|
||||||
|
|
||||||
const my_custom_param= new URL(window.location.href).searchParams.get("my_custom_param");
|
const my_custom_param = new URL(window.location.href).searchParams.get("my_custom_param");
|
||||||
|
|
||||||
if (my_custom_param !== null) {
|
if (my_custom_param !== null) {
|
||||||
console.log("my_custom_param:", my_custom_param);
|
console.log("my_custom_param:", my_custom_param);
|
||||||
@ -44,21 +44,21 @@ export default function Login(props: PageProps<Extract<KcContext, { pageId: "log
|
|||||||
<Template
|
<Template
|
||||||
{...{ kcContext, i18n, doUseDefaultCss, classes }}
|
{...{ kcContext, i18n, doUseDefaultCss, classes }}
|
||||||
displayInfo={
|
displayInfo={
|
||||||
realm.password &&
|
realm.password &&
|
||||||
realm.registrationAllowed &&
|
realm.registrationAllowed &&
|
||||||
!registrationDisabled
|
!registrationDisabled
|
||||||
}
|
}
|
||||||
displayWide={realm.password && social.providers !== undefined}
|
displayWide={realm.password && social.providers !== undefined}
|
||||||
headerNode={msg("doLogIn")}
|
headerNode={msg("doLogIn")}
|
||||||
infoNode={
|
infoNode={
|
||||||
<div id="kc-registration">
|
<div id="kc-registration">
|
||||||
<span>
|
<span>
|
||||||
{msg("noAccount")}
|
{msg("noAccount")}
|
||||||
<a tabIndex={6} href={url.registrationUrl}>
|
<a tabIndex={6} href={url.registrationUrl}>
|
||||||
{msg("doRegister")}
|
{msg("doRegister")}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<div id="kc-form" className={clsx(realm.password && social.providers !== undefined && getClassName("kcContentWrapperClass"))}>
|
<div id="kc-form" className={clsx(realm.password && social.providers !== undefined && getClassName("kcContentWrapperClass"))}>
|
||||||
|
Loading…
Reference in New Issue
Block a user