mirror of https://github.com/status-im/codimd.git
Merge pull request #704 from SISheogorath/fix/ldapProviderName
Fix ldap provider name in template
This commit is contained in:
commit
adc781f7e3
|
@ -69,6 +69,7 @@ function showIndex (req, res, next) {
|
||||||
dropbox: config.isDropboxEnable,
|
dropbox: config.isDropboxEnable,
|
||||||
google: config.isGoogleEnable,
|
google: config.isGoogleEnable,
|
||||||
ldap: config.isLDAPEnable,
|
ldap: config.isLDAPEnable,
|
||||||
|
ldapProviderName: config.ldap.providerName,
|
||||||
saml: config.isSAMLEnable,
|
saml: config.isSAMLEnable,
|
||||||
email: config.isEmailEnable,
|
email: config.isEmailEnable,
|
||||||
allowemailregister: config.allowemailregister,
|
allowemailregister: config.allowemailregister,
|
||||||
|
@ -103,6 +104,7 @@ function responseHackMD (res, note) {
|
||||||
dropbox: config.isDropboxEnable,
|
dropbox: config.isDropboxEnable,
|
||||||
google: config.isGoogleEnable,
|
google: config.isGoogleEnable,
|
||||||
ldap: config.isLDAPEnable,
|
ldap: config.isLDAPEnable,
|
||||||
|
ldapProviderName: config.ldap.providerName,
|
||||||
saml: config.isSAMLEnable,
|
saml: config.isSAMLEnable,
|
||||||
email: config.isEmailEnable,
|
email: config.isEmailEnable,
|
||||||
allowemailregister: config.allowemailregister,
|
allowemailregister: config.allowemailregister,
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
<hr>
|
<hr>
|
||||||
<% }%>
|
<% }%>
|
||||||
<% if(ldap) { %>
|
<% if(ldap) { %>
|
||||||
<h4>Via <% if (ldap.providerName) { %> <%- ldap.providerName %> (LDAP) <% } else { %> LDAP <% } %></h4>
|
<h4>Via <% if (ldapProviderName) { %> <%= ldapProviderName %> (LDAP) <% } else { %> LDAP <% } %></h4>
|
||||||
<form data-toggle="validator" role="form" class="form-horizontal" method="post" enctype="application/x-www-form-urlencoded">
|
<form data-toggle="validator" role="form" class="form-horizontal" method="post" enctype="application/x-www-form-urlencoded">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="col-sm-12">
|
<div class="col-sm-12">
|
||||||
|
|
Loading…
Reference in New Issue