From 7f31d0c76fc5f8de269fdc34f1ba3dc9690bad31 Mon Sep 17 00:00:00 2001 From: chiu Date: Mon, 22 Feb 2021 12:19:47 +0800 Subject: [PATCH] fix error --- lib/ldap_login/login.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ldap_login/login.rb b/lib/ldap_login/login.rb index e6311b5..5997245 100644 --- a/lib/ldap_login/login.rb +++ b/lib/ldap_login/login.rb @@ -8,6 +8,8 @@ module LdapLogin::Login ldap_pass = params[:password] login_flag = false _session = {'ad' => []} + url = '/' + url_method = 'redirect_to' ldap_hosts.each do |ldap_host| begin ldap = Net::LDAP.new