From: Moritz Bunkus Date: Wed, 29 Dec 2010 11:43:51 +0000 (+0100) Subject: Merge branch 'master' of ssh://lx-office.linet-services.de/~/lx-office-erp X-Git-Tag: release-2.6.2beta1~48^2~2 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/commitdiff_plain/0672f4afe29c2ba6537d90f4a0ff7eeff78ccae6?hp=7dfa6eed24ec82c6891b75fee18993956a02a7b9 Merge branch 'master' of ssh://lx-office.linet-services.de/~/lx-office-erp --- 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 {