[Koha-cvs] CVS: koha/C4 Auth.pm,1.15,1.16

Andrew Arensburger arensb at users.sourceforge.net
Sat Oct 12 08:12:41 CEST 2002


Update of /cvsroot/koha/koha/C4
In directory usw-pr-cvs1:/tmp/cvs-serv10368

Modified Files:
	Auth.pm 
Log Message:
Turn off authentication entirely if systempreference "insecure" is set
to "yes".


Index: Auth.pm
===================================================================
RCS file: /cvsroot/koha/koha/C4/Auth.pm,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** Auth.pm	10 Oct 2002 14:47:00 -0000	1.15
--- Auth.pm	12 Oct 2002 06:12:39 -0000	1.16
***************
*** 191,195 ****
  	# new cookie.
  
! 	if ($authnotrequired) {
  		# This script doesn't require the user to be logged in. Return
  		# just the cookie, without user ID or session ID information.
--- 191,198 ----
  	# new cookie.
  
! 	my $insecure = C4::Context->preference("insecure");
! 
! 	if ($authnotrequired ||
! 	    (defined($insecure) && $insecure eq "yes")) {
  		# This script doesn't require the user to be logged in. Return
  		# just the cookie, without user ID or session ID information.





More information about the Koha-cvs mailing list