X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDispatcher.pm;h=35284db4be23601dc79fb7c46e9a17c7b2c81cae;hb=8fdebd9cf2e3aa8fc9643f34cec96f172812abfb;hp=98c93d4f4092ed68eb3493f9fc471bff1fa88830;hpb=57463eed482c9f107a6bb35d8b24d666175570a3;p=kivitendo-erp.git 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});