Compare commits

...

4 Commits

Author SHA1 Message Date
0e21f3eab6 Add missing mock 2023-03-22 03:07:33 +01:00
9fcf692cb8 Bump version 2023-03-22 03:03:24 +01:00
da577ea3cc Add stateChecker to password context 2023-03-22 03:02:44 +01:00
6ae1d8938a Fix eslint 2023-03-22 03:00:44 +01:00
5 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{
"name": "keycloakify",
"version": "7.0.0",
"version": "7.0.1",
"description": "Create Keycloak themes using React",
"repository": {
"type": "git",

View File

@ -43,6 +43,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>

View File

@ -64,6 +64,7 @@ export declare namespace KcContext {
password: {
passwordSet: boolean;
};
stateChecker: string;
};
export type Account = Common & {

View File

@ -154,7 +154,8 @@ export const kcContextMocks: KcContext[] = [
"pageId": "password.ftl",
"password": {
"passwordSet": true
}
},
"stateChecker": "state checker"
}),
id<KcContext.Account>({
...kcContextCommonMock,

View File

@ -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">