Only display social logins on main login page
This commit is contained in:
parent
48b3b9a7fc
commit
455aca9dc0
2 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
<#ftl strip_whitespace=true strip_text=true>
|
<#ftl strip_whitespace=true strip_text=true>
|
||||||
<#import "template.ftl" as layout>
|
<#import "template.ftl" as layout>
|
||||||
<@layout.registrationLayout bodyClass=""; section>
|
<@layout.registrationLayout bodyClass="" displaySocial=social.displaySocialProviders; section>
|
||||||
<#if section = "title">${rb.loginTitle} ${realm.name}
|
<#if section = "title">${rb.loginTitle} ${realm.name}
|
||||||
|
|
||||||
<#elseif section = "header">
|
<#elseif section = "header">
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<#macro registrationLayout bodyClass isSeparator=false forceSeparator=false>
|
<#macro registrationLayout bodyClass isSeparator=false forceSeparator=false displaySocial=false>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
<#else>
|
<#else>
|
||||||
<#assign drawSeparator = isSeparator>
|
<#assign drawSeparator = isSeparator>
|
||||||
</#if>
|
</#if>
|
||||||
<div class="form-area ${(realm.social && bodyClass != "register")?string('social','')} ${(drawSeparator)?string('separator','')} clearfix">
|
<div class="form-area ${displaySocial?string('social','')} ${(drawSeparator)?string('separator','')} clearfix">
|
||||||
<div class="section app-form">
|
<div class="section app-form">
|
||||||
<#if message?has_content>
|
<#if message?has_content>
|
||||||
<div class="feedback ${message.type} bottom-left show">
|
<div class="feedback ${message.type} bottom-left show">
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
</#if>
|
</#if>
|
||||||
<#nested "form">
|
<#nested "form">
|
||||||
</div>
|
</div>
|
||||||
<#if social.displaySocialProviders>
|
<#if displaySocial>
|
||||||
<div class="section social-login"> <span>or</span>
|
<div class="section social-login"> <span>or</span>
|
||||||
<p>${rb.logInWith}</p>
|
<p>${rb.logInWith}</p>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
Loading…
Reference in a new issue