This commit is contained in:
Joseph Garrone 2024-01-26 01:29:30 +01:00
parent 43165eeed2
commit 179cd84298

View file

@ -6,7 +6,7 @@ import { useGetClassName } from "keycloakify/login/lib/useGetClassName";
import type { KcContext } from "../kcContext";
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) {
console.log("my_custom_param:", my_custom_param);
@ -44,7 +44,7 @@ export default function Login(props: PageProps<Extract<KcContext, { pageId: "log
<Template
{...{ kcContext, i18n, doUseDefaultCss, classes }}
displayInfo={
realm.password &&
realm.password &&
realm.registrationAllowed &&
!registrationDisabled
}