forked from External/greenlight
only use LDAP when enabled
This commit is contained in:
parent
ae774b90ce
commit
0eb26ae8ec
|
@ -19,6 +19,10 @@ class SessionsController < ApplicationController
|
||||||
skip_before_filter :verify_authenticity_token
|
skip_before_filter :verify_authenticity_token
|
||||||
|
|
||||||
def new
|
def new
|
||||||
|
# If LDAP is enabled, just route to it instead.
|
||||||
|
if Rails.application.config.omniauth_ldap
|
||||||
|
redirect_to "#{relative_root}/auth/ldap"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
|
|
Loading…
Reference in New Issue