Revision fa438d50
Von Moritz Bunkus vor fast 14 Jahren hinzugefügt
SL/Dispatcher.pm | ||
---|---|---|
149 | 149 |
pre_request_checks(); |
150 | 150 |
|
151 | 151 |
eval { |
152 |
my $session_result = $::auth->restore_session; |
|
153 |
$::auth->create_or_refresh_session; |
|
154 |
|
|
152 | 155 |
$::form->error($::locale->text('System currently down for maintenance!')) if -e "$::userspath/nologin" && $script ne 'admin'; |
153 | 156 |
|
154 | 157 |
if ($script eq 'login' or $script eq 'admin' or $script eq 'kopf') { |
155 | 158 |
$::form->{titlebar} = "Lx-Office " . $::locale->text('Version') . " $::form->{version}"; |
156 |
::run($::auth->restore_session);
|
|
159 |
::run($session_result);
|
|
157 | 160 |
|
158 | 161 |
} else { |
159 |
# copy from am.pl routines |
|
160 |
my $session_result = $::auth->restore_session; |
|
161 |
|
|
162 | 162 |
show_error('login/password_error', 'session') if SL::Auth::SESSION_EXPIRED == $session_result; |
163 | 163 |
%::myconfig = $::auth->read_user($::form->{login}); |
164 | 164 |
|
Auch abrufbar als: Unified diff
Session immer herstellen und refreshen, auch wenn System gesperrt ist
Fix für Bug 1467.