mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 06:07:57 +01:00
Finish LDAP support.
This commit is contained in:
parent
0f605d89f0
commit
79f5e51513
@ -42,6 +42,8 @@ public class RequestPropertiesInterceptor extends HandlerInterceptorAdapter {
|
||||
@Value("${site.baseurl}")
|
||||
private String siteUrl;
|
||||
|
||||
@Value("${security.type}")
|
||||
private String securityType;
|
||||
|
||||
public boolean preHandle(@NotNull HttpServletRequest request, @NotNull HttpServletResponse response, Object object) throws Exception {
|
||||
|
||||
@ -49,6 +51,8 @@ public class RequestPropertiesInterceptor extends HandlerInterceptorAdapter {
|
||||
request.setAttribute("google.analytics.account", analyticsAccount);
|
||||
request.setAttribute("google.ads.enabled", adsEnabled);
|
||||
request.setAttribute("site.homepage", siteHomepage);
|
||||
request.setAttribute("security.type", securityType);
|
||||
|
||||
|
||||
// If the property could not be resolved, try to infer one from the request...
|
||||
if ("${site.baseurl}".equals(siteUrl)) {
|
||||
|
@ -3,8 +3,10 @@
|
||||
|
||||
<div>
|
||||
<ul class="nav nav-tabs">
|
||||
<c:if test="${requestScope['security.type']=='db'}">
|
||||
<li class="active"><a href="#changeUserPanel" data-toggle="pill"><spring:message code="GENERAL"/></a></li>
|
||||
<li><a href="#changePasswordPanel" data-toggle="pill"><spring:message code="SECURITY"/></a></li>
|
||||
</c:if>
|
||||
<li><a href="#languagePanel" data-toggle="pill"><spring:message code="LANGUAGE"/></a></li>
|
||||
</ul>
|
||||
|
||||
|
@ -69,14 +69,17 @@
|
||||
|
||||
<div class="row">
|
||||
<div id="register" class="span12">
|
||||
<c:if test="${requestScope['security.type']=='db'}">
|
||||
<b><spring:message code="NOT_READY_A_USER"/></b>
|
||||
<spring:message code="NOT_READY_A_USER_MESSAGE"/>
|
||||
<a href="c/user/registration">
|
||||
<spring:message code="JOIN_NOW"/>
|
||||
</a>
|
||||
</c:if>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<c:if test="${isHsql== 'true'}">
|
||||
<div class="row-fluid">
|
||||
<div class="alert alert-info span offset12">
|
||||
|
Loading…
Reference in New Issue
Block a user