only use LDAP when enabled

This commit is contained in:
Josh 2017-07-06 09:08:49 -04:00
parent ae774b90ce
commit 0eb26ae8ec
1 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,10 @@ class SessionsController < ApplicationController
skip_before_filter :verify_authenticity_token
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
def create