]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/User.pm
dbconnect_noauto entfernt
[kivitendo-erp.git] / SL / User.pm
index 2c628559971a665086928dfe88b97120460126d1..6d671c4bdfeb80a834c07f40401fb3fd6c9715e8 100644 (file)
@@ -37,6 +37,7 @@ package User;
 use IO::File;
 use Fcntl qw(:seek);
 
+use SL::DB;
 #use SL::Auth;
 use SL::DB::AuthClient;
 use SL::DB::Employee;
@@ -113,7 +114,7 @@ sub login {
   return LOGIN_AUTH_DBUPDATE_AVAILABLE() if $dbupdater_auth->unapplied_upgrade_scripts($::auth->dbconnect);
 
   # check if database is down
-  my $dbh = $form->dbconnect_noauto;
+  my $dbh = SL::DB->client->dbh;
 
   # we got a connection, check the version
   my ($dbversion) = $dbh->selectrow_array(qq|SELECT version FROM defaults|);