From fa438d5021131074e3e10e71eb8f31887fa69f9d Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 29 Dec 2010 13:04:31 +0100 Subject: [PATCH] Session immer herstellen und refreshen, auch wenn System gesperrt ist MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix für Bug 1467. --- SL/Dispatcher.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SL/Dispatcher.pm b/SL/Dispatcher.pm index 98c93d4f4..35284db4b 100644 --- a/SL/Dispatcher.pm +++ b/SL/Dispatcher.pm @@ -149,16 +149,16 @@ sub handle_request { pre_request_checks(); eval { + my $session_result = $::auth->restore_session; + $::auth->create_or_refresh_session; + $::form->error($::locale->text('System currently down for maintenance!')) if -e "$::userspath/nologin" && $script ne 'admin'; if ($script eq 'login' or $script eq 'admin' or $script eq 'kopf') { $::form->{titlebar} = "Lx-Office " . $::locale->text('Version') . " $::form->{version}"; - ::run($::auth->restore_session); + ::run($session_result); } else { - # copy from am.pl routines - my $session_result = $::auth->restore_session; - show_error('login/password_error', 'session') if SL::Auth::SESSION_EXPIRED == $session_result; %::myconfig = $::auth->read_user($::form->{login}); -- 2.20.1