From e44751b3f136e7a438b1379a8d865bdff6cf235e Mon Sep 17 00:00:00 2001 From: Sheogorath Date: Fri, 26 Jan 2018 10:42:06 +0100 Subject: 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 --- public/views/shared/signin-modal.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'public/views/shared') diff --git a/public/views/shared/signin-modal.ejs b/public/views/shared/signin-modal.ejs index 7b44cfb0..ce01c739 100644 --- a/public/views/shared/signin-modal.ejs +++ b/public/views/shared/signin-modal.ejs @@ -52,7 +52,7 @@
<% }%> <% if(ldap) { %> -

Via <% if (ldap.providerName) { %> <%- ldap.providerName %> (LDAP) <% } else { %> LDAP <% } %>

+

Via <% if (ldapProviderName) { %> <%= ldapProviderName %> (LDAP) <% } else { %> LDAP <% } %>

-- cgit v1.2.3