Skip to content

Commit

Permalink
Update Template.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej authored Dec 18, 2023
1 parent 0c0c81d commit d5a3cf3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/keycloak-theme/login/Template.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -43,6 +44,8 @@ export default function Template(props: TemplateProps<KcContext, I18n>) {
"bodyClassName": getClassName("kcBodyClass")
});

useState(()=> { document.title = i18n.msgStr("loginTitle", kcContext.realm.displayName); });

if (!isReady) {
return null;
}
Expand Down

0 comments on commit d5a3cf3

Please sign in to comment.