diff --git a/src/keycloak-theme/login/Template.tsx b/src/keycloak-theme/login/Template.tsx index cb663b9..181928d 100644 --- a/src/keycloak-theme/login/Template.tsx +++ b/src/keycloak-theme/login/Template.tsx @@ -1,5 +1,6 @@ // Copy pasted from: https://github.com/InseeFrLab/keycloakify/blob/main/src/login/Template.tsx +import { useState } from "react"; import { assert } from "keycloakify/tools/assert"; import { clsx } from "keycloakify/tools/clsx"; import { usePrepareTemplate } from "keycloakify/lib/usePrepareTemplate"; @@ -43,6 +44,8 @@ export default function Template(props: TemplateProps) { "bodyClassName": getClassName("kcBodyClass") }); + useState(()=> { document.title = i18n.msgStr("loginTitle", kcContext.realm.displayName); }); + if (!isReady) { return null; }