Skip to content

Commit

Permalink
Update Keycloakify and fix the condition for rendering forgoten passw…
Browse files Browse the repository at this point in the history
…ord in loggin
  • Loading branch information
garronej committed Jan 26, 2024
1 parent ad0dba9 commit 88a0e05
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"dependencies": {
"evt": "^2.5.7",
"oidc-spa": "^4.0.0",
"keycloakify": "^9.1.10",
"keycloakify": "^9.1.11",
"powerhooks": "^1.0.8",
"react": "18.1.0",
"react-dom": "18.1.0",
Expand Down
10 changes: 5 additions & 5 deletions src/keycloak-theme/login/pages/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,14 @@ export default function Login(props: PageProps<Extract<KcContext, { pageId: "log
return (
<Template
{...{ kcContext, i18n, doUseDefaultCss, classes }}
displayInfo={social.displayInfo}
displayInfo={
realm.password &&
realm.registrationAllowed &&
!registrationDisabled
}
displayWide={realm.password && social.providers !== undefined}
headerNode={msg("doLogIn")}
infoNode={
realm.password &&
realm.registrationAllowed &&
!registrationDisabled && (
<div id="kc-registration">
<span>
{msg("noAccount")}
Expand All @@ -58,7 +59,6 @@ export default function Login(props: PageProps<Extract<KcContext, { pageId: "log
</a>
</span>
</div>
)
}
>
<div id="kc-form" className={clsx(realm.password && social.providers !== undefined && getClassName("kcContentWrapperClass"))}>
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9769,10 +9769,10 @@ jwt-decode@^3.1.2:
resolved "https://registry.yarnpkg.com/jwt-decode/-/jwt-decode-3.1.2.tgz#3fb319f3675a2df0c2895c8f5e9fa4b67b04ed59"
integrity sha512-UfpWE/VZn0iP50d8cz9NrZLM9lSWhcJ+0Gt/nm4by88UL+J1SiKN8/5dkjMmbEzwL2CAe+67GsegCbIKtbp75A==

keycloakify@^9.1.10:
version "9.1.10"
resolved "https://registry.yarnpkg.com/keycloakify/-/keycloakify-9.1.10.tgz#048dd0c40fa6bbe25aec23f4deb803db24a7542e"
integrity sha512-BIXuiHLLtz/B04uHwE6jrzIgEPcfrFzGZDRB8HMfCFkgz30RJrf+7arFnYBwvFNs7hcwZOJzJyVIVQb0ixPxrw==
keycloakify@^9.1.11:
version "9.1.11"
resolved "https://registry.yarnpkg.com/keycloakify/-/keycloakify-9.1.11.tgz#d52f895c5d79069b194bdc334dd0a846dd5856e1"
integrity sha512-vI6KZRTjAFhtVPvNK2cves9dUJjSEzAL25XyXbrAfc1rrG7o/PxIBtbvqEmMfmLC9hS0gAvjsXcmBSaBff+ADQ==
dependencies:
"@babel/generator" "^7.22.9"
"@babel/parser" "^7.22.7"
Expand Down

0 comments on commit 88a0e05

Please sign in to comment.