]> wagnertech.de Git - kivitendo-erp.git/commitdiff
Nach Anmeldung an Administrationsbereich Passwort in Session speichern
authorMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 21 Sep 2010 13:00:46 +0000 (15:00 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 21 Sep 2010 13:00:46 +0000 (15:00 +0200)
bin/mozilla/admin.pl

index b1bdcb219a2f39e4b60af9417d64bc20117dbc20..891c4ba42ccb8a02ac208f4fbf33a9c2b449847d 100755 (executable)
@@ -79,7 +79,10 @@ sub run {
       $form->{error_message} = $locale->text('Incorrect Password!');
       adminlogin();
     } else {
-      $auth->create_or_refresh_session() if ($auth->session_tables_present());
+      if ($auth->session_tables_present()) {
+        $::auth->set_session_value('rpw', $::form->{rpw});
+        $::auth->create_or_refresh_session();
+      }
       call_sub($locale->findsub($form->{action}));
     }
   } elsif ($auth->authenticate_root($form->{rpw}, 0) == $auth->OK()) {