forked from External/greenlight
GRN2-30: Add custom ldap sign in page (#619)
* Add custom ldap signin page * Remove old omniauth-ldap gem * Use new bn gems
This commit is contained in:
committed by
Jesus Federico
parent
09afd9154f
commit
523d9a38f2
@ -33,7 +33,7 @@ module ApplicationHelper
|
||||
|
||||
# Determines which providers can show a login button in the login modal.
|
||||
def iconset_providers
|
||||
providers = configured_providers & [:google, :twitter, :microsoft_office365]
|
||||
providers = configured_providers & [:google, :twitter, :microsoft_office365, :ldap]
|
||||
|
||||
providers.delete(:twitter) if session[:old_twitter_user_id]
|
||||
|
||||
@ -42,7 +42,11 @@ module ApplicationHelper
|
||||
|
||||
# Generates the login URL for a specific provider.
|
||||
def omniauth_login_url(provider)
|
||||
"#{Rails.configuration.relative_url_root}/auth/#{provider}"
|
||||
if provider == :ldap
|
||||
ldap_signin_path
|
||||
else
|
||||
"#{Rails.configuration.relative_url_root}/auth/#{provider}"
|
||||
end
|
||||
end
|
||||
|
||||
# Determine if Greenlight is configured to allow user signups.
|
||||
|
Reference in New Issue
Block a user