X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/a3f90d6fa23d0a8d026682511e7624bd847d532f..d73a8843d998152d2384a6bb5fd966badcb1e505:/SL/Auth.pm diff --git a/SL/Auth.pm b/SL/Auth.pm index eb5a7805a..6bb7bfaa7 100644 --- a/SL/Auth.pm +++ b/SL/Auth.pm @@ -126,7 +126,9 @@ sub authenticate_root { $main::lxdebug->leave_sub(); - return $password eq $admin_password ? OK : ERR_PASSWORD; + return OK if $password eq $admin_password; + sleep 5; + return ERR_PASSWORD; } sub authenticate { @@ -136,7 +138,10 @@ sub authenticate { $main::lxdebug->leave_sub(); - return $self->{authenticator}->authenticate(@_); + my $result = $self->{authenticator}->authenticate(@_); + return OK if $result eq OK; + sleep 5; + return $result; } sub dbconnect {