]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/Dispatcher.pm
Methoden zum Speichern von eindeutigen Keys in der Session
[kivitendo-erp.git] / SL / Dispatcher.pm
index 406510e2cd44c455d1ee4c03fbbd63c7905e6b11..6512f0312714fa9ff48c233a6c7bc05cb2f10aa3 100644 (file)
@@ -198,11 +198,11 @@ sub handle_request {
 
       $::locale = Locale->new($::myconfig{countrycode});
 
 
       $::locale = Locale->new($::myconfig{countrycode});
 
-      show_error('login/password_error', 'password') if SL::Auth::OK != $::auth->authenticate($::form->{login}, $::form->{password}, 0);
+      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->create_or_refresh_session;
 
       $::auth->set_session_value('login', $::form->{login}, 'password', $::form->{password});
       $::auth->create_or_refresh_session;
-      $::auth->delete_session_value('FLASH')->save_session();
+      $::auth->delete_session_value('FLASH');
       delete $::form->{password};
 
       if ($action) {
       delete $::form->{password};
 
       if ($action) {
@@ -233,6 +233,7 @@ sub handle_request {
   $::form     = undef;
   $::myconfig = ();
   Form::disconnect_standard_dbh;
   $::form     = undef;
   $::myconfig = ();
   Form::disconnect_standard_dbh;
+  $::auth->expire_session_keys->save_session;
   $::auth->dbdisconnect;
 
   $::lxdebug->end_request;
   $::auth->dbdisconnect;
 
   $::lxdebug->end_request;