]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Auth.pm
Merge branch 'master' of git@lx-office.linet-services.de:lx-office-erp
[mfinanz.git] / SL / Auth.pm
index a2e98322f7a2ab8a718888c926af7f2b80da5ea9..cd16c8e0bc48c4541adb5290bcff3b732b48008e 100644 (file)
@@ -136,11 +136,11 @@ sub authenticate_root {
 sub authenticate {
   $main::lxdebug->enter_sub();
 
-  my $self = shift;
+  my ($self, $login, $password) = @_;
 
   $main::lxdebug->leave_sub();
 
-  my $result = $self->{authenticator}->authenticate(@_);
+  my $result = $login ? $self->{authenticator}->authenticate($login, $password) : ERR_USER;
   return OK if $result eq OK;
   sleep 5;
   return $result;