From 1debdda69e7de703958f4af2706a3be72eef38b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Sun, 21 Feb 2021 12:37:50 +0800 Subject: [PATCH] fix error --- lib/ldap_login/login.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/ldap_login/login.rb b/lib/ldap_login/login.rb index 6e80bc4..1a14b91 100644 --- a/lib/ldap_login/login.rb +++ b/lib/ldap_login/login.rb @@ -2,7 +2,6 @@ module LdapLogin::Login require 'net/ldap' LDAP_ADSERVER=["ad.asia.edu.tw","ad2.asia.edu.tw","ad3.asia.edu.tw"] def ldap_login_auth(user,request,session,flash,params) - LDAP_ADSERVER=["ad.asia.edu.tw","ad2.asia.edu.tw","ad3.asia.edu.tw"] ldap_hosts = LDAP_ADSERVER.shuffle error = '' ldap_user = params[:user_name]