summaryrefslogtreecommitdiff
path: root/lib/response.js
diff options
context:
space:
mode:
authorSheogorath2018-01-26 10:42:06 +0100
committerSheogorath2018-01-26 10:46:22 +0100
commite44751b3f136e7a438b1379a8d865bdff6cf235e (patch)
tree9b0b22e6310c0cd4b6ad6e84af91f9de97caac31 /lib/response.js
parent0138911274cec46e83ebb3adc08c85f341d6b81e (diff)
Fix ldap provider name in template
Before this fix it's impossible to set the provider name in the sign-model since `ldap` is a boolean there and this way not able to have an attribute like `ldap.providerName`. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
Diffstat (limited to 'lib/response.js')
-rw-r--r--lib/response.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/response.js b/lib/response.js
index 445aa0d7..c874ce9c 100644
--- a/lib/response.js
+++ b/lib/response.js
@@ -69,6 +69,7 @@ function showIndex (req, res, next) {
dropbox: config.isDropboxEnable,
google: config.isGoogleEnable,
ldap: config.isLDAPEnable,
+ ldapProviderName: config.ldap.providerName,
saml: config.isSAMLEnable,
email: config.isEmailEnable,
allowemailregister: config.allowemailregister,
@@ -103,6 +104,7 @@ function responseHackMD (res, note) {
dropbox: config.isDropboxEnable,
google: config.isGoogleEnable,
ldap: config.isLDAPEnable,
+ ldapProviderName: config.ldap.providerName,
saml: config.isSAMLEnable,
email: config.isEmailEnable,
allowemailregister: config.allowemailregister,