From 5ff7515d5ba448994b68693974603e10fe5e0f72 Mon Sep 17 00:00:00 2001 From: arensb Date: Sat, 12 Oct 2002 06:12:39 +0000 Subject: [PATCH] Turn off authentication entirely if systempreference "insecure" is set to "yes". --- C4/Auth.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 79b12bf75b..32a0cf68f7 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -190,7 +190,10 @@ sub checkauth { # with a valid session ID. Need to start a new session and set a # new cookie. - if ($authnotrequired) { + 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. my $cookie=$query->cookie(-name => 'sessionID', -- 2.39.2