]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Auth.pm
Zugriffsrechte auf der Konsole laden.
[mfinanz.git] / SL / Auth.pm
index 5cedbecf3aa103ece1cf204a757c60a04b5557b0..2bd2d09c083e82401e5628eb82c860a95d5cc2ff 100644 (file)
@@ -187,7 +187,7 @@ sub dbconnect {
     $main::form->error($main::locale->text('The connection to the authentication database failed:') . "\n" . $DBI::errstr);
   }
 
-  $main::lxdebug->leave_sub();
+  $main::lxdebug->leave_sub(2);
 
   return $self->{dbh};
 }
@@ -489,7 +489,7 @@ sub restore_session {
   if (!$cookie || $cookie->{is_expired} || ($cookie->{ip_address} ne $ENV{REMOTE_ADDR})) {
     $self->destroy_session();
     $main::lxdebug->leave_sub();
-    return SESSION_EXPIRED;
+    return $cookie ? SESSION_EXPIRED : SESSION_NONE;
   }
 
   $query = qq|SELECT sess_key, sess_value FROM auth.session_content WHERE session_id = ?|;