X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/6fb7bcc9f1e00bc068a4514a3c7fa599119e6e06..461b6311d70b58f07997b209d6e55c3d0b9c838c:/SL/Dispatcher.pm diff --git a/SL/Dispatcher.pm b/SL/Dispatcher.pm index 47c2e2a35..239cdcb96 100644 --- a/SL/Dispatcher.pm +++ b/SL/Dispatcher.pm @@ -180,9 +180,9 @@ sub handle_request { $::form->{script} = "controller.pl"; } - pre_request_checks(); - eval { + pre_request_checks(); + my $session_result = $::auth->restore_session; $::auth->create_or_refresh_session; @@ -202,7 +202,7 @@ sub handle_request { show_error('login/password_error', 'password') if SL::Auth::OK != $::auth->authenticate($::form->{login}, $::form->{password}); - $::auth->set_session_value('login', $::form->{login}, 'password', $::form->{password}); + $::auth->store_credentials_in_session(login => $::form->{login}, password => $::form->{password}); $::auth->create_or_refresh_session; $::auth->delete_session_value('FLASH'); delete $::form->{password}; @@ -231,13 +231,14 @@ sub handle_request { }; # cleanup + $::auth->expire_session_keys->save_session; + $::auth->expire_sessions; + $::auth->reset; + $::locale = undef; $::form = undef; $::myconfig = (); Form::disconnect_standard_dbh; - $::auth->expire_session_keys->save_session; - $::auth->expire_sessions; - $::auth->reset; $::lxdebug->end_request; $::lxdebug->leave_sub;