[bbb-greenlight: 14/16] Remove flawed logic for enabling LDAP




commit 513056419db72ca6083a8c44e73eb6a7d2a05025
Author: Bartłomiej Piotrowski <b bpiotrowski pl>
Date:   Mon Aug 3 12:17:55 2020 +0200

    Remove flawed logic for enabling LDAP
    
    We want to keep both LDAP and local accounts enabled. Enabling only
    LDAP causes the other to be disabled.

 app/controllers/sessions_controller.rb | 10 ----------
 1 file changed, 10 deletions(-)
---
diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb
index eaa5e5e..2974c4e 100644
--- a/app/controllers/sessions_controller.rb
+++ b/app/controllers/sessions_controller.rb
@@ -31,16 +31,6 @@ class SessionsController < ApplicationController
     check_if_twitter_account
 
     @providers = configured_providers
-
-    if one_provider
-      provider_path = if Rails.configuration.omniauth_ldap
-        ldap_signin_path
-      else
-        "#{Rails.configuration.relative_url_root}/auth/#{@providers.first}"
-      end
-
-      redirect_to provider_path
-    end
   end
 
   # GET /ldap_signin


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]