Bug 6627 follow-up
authorPaul Poulain <paul.poulain@biblibre.com>
Fri, 6 Jan 2012 13:22:59 +0000 (14:22 +0100)
committerPaul Poulain <paul.poulain@biblibre.com>
Fri, 6 Jan 2012 13:22:59 +0000 (14:22 +0100)
in installer, some lines where forgotten, and can also be commented

installer/InstallAuth.pm

index ccdcbcb..5b99c1f 100644 (file)
@@ -276,10 +276,10 @@ sub checkauth {
             $userid    = undef;
           # Commented out due to its lack of usefulness
            # open L, ">>/tmp/sessionlog";
-            my $time = localtime( time() );
-            printf L "%20s from %16s logged out at %30s (manually).\n", $userid,
-              $ip, $time;
-            close L;
+           # my $time = localtime( time() );
+           # printf L "%20s from %16s logged out at %30s (manually).\n", $userid,
+           #   $ip, $time;
+           # close L;
         }
     }
     unless ($userid) {
@@ -293,11 +293,11 @@ sub checkauth {
         my ( $return, $cardnumber ) = checkpw( $userid, $password );
         if ($return) {
             $loggedin = 1;
-            open L, ">>/tmp/sessionlog";
-            my $time = localtime( time() );
-            printf L "%20s from %16s logged in  at %30s.\n", $userid,
-              $ENV{'REMOTE_ADDR'}, $time;
-            close L;
+            open L, ">>/tmp/sessionlog";
+            my $time = localtime( time() );
+            printf L "%20s from %16s logged in  at %30s.\n", $userid,
+            #  $ENV{'REMOTE_ADDR'}, $time;
+            close L;
             $cookie = $query->cookie( CGISESSID => $sessionID );
             if ( $return == 2 ) {