Skip to content

Commit

Permalink
Fix issues w/ form not passing on auth state (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysyngsun authored Jan 22, 2025
1 parent 0be184d commit 2d491ce
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions ol-keycloak/oltheme/src/main/resources/theme/ol/login/login.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -110,26 +110,26 @@
</div>
</form>
<#elseif realm.resetPasswordAllowed>
<form id="kc-form-login" onsubmit="login.disabled = true; return true;"
action="${url.loginResetCredentialsUrl}" method="get" class="${properties.kcFormClass!}">
<div id="kc-form-login" class="${properties.kcFormClass!}">
<div class="${properties.kcFormGroupClass!}">
<p>
<b>Password required.</b>
For security reasons you will need to create a new password for your account.
</p>
</div>
<div id="kc-form-buttons" class="${properties.kcFormGroupClass!}">
<button
<a
href="${url.loginResetCredentialsUrl}"
class="${properties.kcButtonClass!} ${properties.kcButtonPrimaryClass!} ${properties.kcButtonBlockClass!} ${properties.kcButtonLargeClass!}"
id="kc-create-password" type="submit">
${msg("createPassword")}
</button>
</div>
</form>
<#else>
<div class="${properties.kcFormGroupClass!}">
<p>Unable to log you in - no password and password reset is disabled by the administrator.</p>
</a>
</div>
</div>
<#else>
<div class="${properties.kcFormGroupClass!}">
<p>Unable to log you in - no password and password reset is disabled by the administrator.</p>
</div>
</#if>
</#if>
</div>
Expand Down

0 comments on commit 2d491ce

Please sign in to comment.