From 8f7f43705051992b65a30630412e1ab46523caba Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 29 Dec 2010 12:43:48 +0100 Subject: [PATCH] =?utf8?q?Bei=20falschem=20Passwort=20f=C3=BCnf=20Sekunden?= =?utf8?q?=20vor=20n=C3=A4chstem=20Versuch=20warten.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Auth.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 { -- 2.20.1