[Koha-patches] [PATCH 11/11] BZ5630 MT4704: Fix multiple CAS authentication

paul.poulain at biblibre.com paul.poulain at biblibre.com
Wed Jan 19 21:24:43 CET 2011


From: Paul Poulain <paul.poulain at biblibre.com>

---
 C4/Auth.pm |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/C4/Auth.pm b/C4/Auth.pm
index f34e153..6021600 100644
--- a/C4/Auth.pm
+++ b/C4/Auth.pm
@@ -954,14 +954,11 @@ sub checkauth {
     if ($cas) {
 
 	# Is authentication against multiple CAS servers enabled?
-
         if (C4::Auth_with_cas::multipleAuth && !$casparam) {
 	    my $casservers = C4::Auth_with_cas::getMultipleAuth();		    
-#	    warn Data::Dumper::Dumper($casservers);
 	    my @tmplservers;
 	    foreach my $key (keys %$casservers) {
-	    warn $key, $casservers->{$key};
-		push @tmplservers, {name => $key, value => login_cas_url($query, $key)};
+		push @tmplservers, {name => $key, value => login_cas_url($query, $key) . "?cas=$key" };
 	    }
 	    #warn Data::Dumper::Dumper(\@tmplservers);
 	    $template->param(
-- 
1.7.1



More information about the Koha-patches mailing list