Skip to content

Commit

Permalink
move social buttons above login form
Browse files Browse the repository at this point in the history
  • Loading branch information
dulvui committed Feb 21, 2024
1 parent c1d17ab commit b527467
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions themes/noiV2/login/template.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,17 @@
</#if>
</#if>
</header>
<#nested "socialProviders">

<#if auth?has_content && auth.showTryAnotherWayLink() && showAnotherWayIfPresent>
<form id="kc-select-try-another-way-form" action="${url.loginAction}" method="post">
<div class="${properties.kcFormGroupClass!}">
<input type="hidden" name="tryAnotherWay" value="on"/>
<a href="#" id="try-another-way"
onclick="document.forms['kc-select-try-another-way-form'].submit();return false;">${msg("doTryAnotherWay")}</a>
</div>
</form>
</#if>

<#-- App-initiated actions should not see warning messages about the need to complete the action -->
<#-- during login. -->
Expand All @@ -141,18 +151,6 @@

<#nested "form">

<#if auth?has_content && auth.showTryAnotherWayLink() && showAnotherWayIfPresent>
<form id="kc-select-try-another-way-form" action="${url.loginAction}" method="post">
<div class="${properties.kcFormGroupClass!}">
<input type="hidden" name="tryAnotherWay" value="on"/>
<a href="#" id="try-another-way"
onclick="document.forms['kc-select-try-another-way-form'].submit();return false;">${msg("doTryAnotherWay")}</a>
</div>
</form>
</#if>

<#nested "socialProviders">

<#if displayInfo>
<div id="kc-info" class="${properties.kcSignUpClass!}">
<div id="kc-info-wrapper" class="${properties.kcInfoAreaWrapperClass!}">
Expand Down

0 comments on commit b527467

Please sign in to comment.