show_error('login/auth_db_unreachable');
}
$auth->expire_sessions();
-$auth->restore_session();
+my $session_result = $auth->restore_session();
# customization
if (-f "bin/mozilla/custom_$form->{script}") {
# window title bar, user info
$form->{titlebar} = "Lx-Office " . $locale->text('Version') . " $form->{version}";
+if (SL::Auth::SESSION_EXPIRED == $session_result) {
+ $form->{error_message} = $locale->text('The session is invalid or has expired.');
+ login_screen();
+ exit;
+}
+
my $action = $form->{action};
if (!$action && $auth->{SESSION}->{login}) {
$form->{stylesheet} = "lx-office-erp.css";
}
- $form->{msg} = $msg;
- $form->{fokus} = "loginscreen.login";
- $form->header;
+ $form->{msg} = $msg;
+ $form->header();
print $form->parse_html_template('login/login_screen');
my %style_to_script_map = ( 'v3' => 'v3',
'neu' => 'new',
+ 'js' => 'js',
'xml' => 'XML',
);