From e218294c2c56d9478cbe6c0fd8b968effd113d35 Mon Sep 17 00:00:00 2001 From: tipaul Date: Thu, 4 Aug 2005 14:35:54 +0000 Subject: [PATCH] fixing a bug in synch --- C4/Auth.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 00414ade26..a4e64a73c3 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -478,7 +478,7 @@ sub checkpw { if ($sth->rows) { my ($md5password,$cardnumber) = $sth->fetchrow; if (md5_base64($password) eq $md5password) { - C4::Context->set_userenv("$bornum",$userid,$cardnumber,$firstname,$surname,$branchcode,$userflags); +# C4::Context->set_userenv("$bornum",$userid,$cardnumber,$firstname,$surname,$branchcode,$userflags); return 1,$cardnumber; } } @@ -487,13 +487,13 @@ sub checkpw { if ($sth->rows) { my ($md5password) = $sth->fetchrow; if (md5_base64($password) eq $md5password) { - C4::Context->set_userenv($bornum,$userid,$cardnumber,$firstname,$surname,$branchcode,$userflags); +# C4::Context->set_userenv($bornum,$userid,$cardnumber,$firstname,$surname,$branchcode,$userflags); return 1,$userid; } } if ($userid eq C4::Context->config('user') && $password eq C4::Context->config('pass')) { # Koha superuser account - C4::Context->set_userenv(0,0,C4::Context->config('user'),C4::Context->config('user'),C4::Context->config('user'),"",1); +# C4::Context->set_userenv(0,0,C4::Context->config('user'),C4::Context->config('user'),C4::Context->config('user'),"",1); return 2; } if ($userid eq 'demo' && $password eq 'demo' && C4::Context->config('demo')) { -- 2.39.5