my $session_result = $::auth->restore_session;
$::auth->create_or_refresh_session;
$::form->error($::locale->text('System currently down for maintenance!')) if -e ($::lx_office_conf{paths}->{userspath} . "/nologin") && $script ne 'admin';
my $session_result = $::auth->restore_session;
$::auth->create_or_refresh_session;
$::form->error($::locale->text('System currently down for maintenance!')) if -e ($::lx_office_conf{paths}->{userspath} . "/nologin") && $script ne 'admin';
show_error('login/password_error', 'password') if SL::Auth::OK != $::auth->authenticate($::form->{login}, $::form->{password});
show_error('login/password_error', 'password') if SL::Auth::OK != $::auth->authenticate($::form->{login}, $::form->{password});
$::auth->create_or_refresh_session;
$::auth->delete_session_value('FLASH');
delete $::form->{password};
$::auth->create_or_refresh_session;
$::auth->delete_session_value('FLASH');
delete $::form->{password};