aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/App/App.tsx2
-rw-r--r--src/keycloak-theme/account/Template.tsx1
-rw-r--r--src/keycloak-theme/account/pages/Password.tsx4
3 files changed, 4 insertions, 3 deletions
diff --git a/src/App/App.tsx b/src/App/App.tsx
index 9efcf9f..0d9cc38 100644
--- a/src/App/App.tsx
+++ b/src/App/App.tsx
@@ -48,7 +48,7 @@ function ContextualizedApp() {
<>
<h1>You are authenticated !</h1>
{/* On older Keycloak version its /auth/realms instead of /realms */}
- <a href={`${keycloakUrl}/realms/${keycloakRealm}/account`} target="_blank">Link to your Keycloak account</a>
+ <a href={`${keycloakUrl}/realms/${keycloakRealm}/account`} target="_blank" rel="noreferrer">Link to your Keycloak account</a>
<pre style={{ textAlign: "left" }}>{JSON.stringify(jwt_decode(oidcClient.getAccessToken()), null, 2)}</pre>
<button onClick={() => oidcClient.logout({ redirectTo: "home" })}>Logout</button>
</>
diff --git a/src/keycloak-theme/account/Template.tsx b/src/keycloak-theme/account/Template.tsx
index 283178b..d535986 100644
--- a/src/keycloak-theme/account/Template.tsx
+++ b/src/keycloak-theme/account/Template.tsx
@@ -45,6 +45,7 @@ export default function Template(props: TemplateProps<KcContext, I18n>) {
{realm.internationalizationEnabled && (assert(locale !== undefined), true) && locale.supported.length > 1 && (
<li>
<div className="kc-dropdown" id="kc-locale-dropdown">
+ {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
<a href="#" id="kc-current-locale-link">
{labelBySupportedLanguageTag[currentLanguageTag]}
</a>
diff --git a/src/keycloak-theme/account/pages/Password.tsx b/src/keycloak-theme/account/pages/Password.tsx
index c92b4d1..b583c08 100644
--- a/src/keycloak-theme/account/pages/Password.tsx
+++ b/src/keycloak-theme/account/pages/Password.tsx
@@ -15,7 +15,7 @@ export default function LogoutConfirm(props: PageProps<Extract<KcContext, { page
}
});
- const { url, password, account } = kcContext;
+ const { url, password, account, stateChecker } = kcContext;
const { msg } = i18n;
@@ -55,7 +55,7 @@ export default function LogoutConfirm(props: PageProps<Extract<KcContext, { page
</div>
)}
- <input type="hidden" id="stateChecker" name="stateChecker" value="${stateChecker}" />
+ <input type="hidden" id="stateChecker" name="stateChecker" value={stateChecker} />
<div className="form-group">
<div className="col-sm-2 col-md-2">