projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
738c240
)
Bei falschem Passwort fünf Sekunden vor nächstem Versuch warten.
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 29 Dec 2010 11:43:48 +0000
(12:43 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 29 Dec 2010 11:43:48 +0000
(12:43 +0100)
SL/Auth.pm
patch
|
blob
|
history
diff --git
a/SL/Auth.pm
b/SL/Auth.pm
index
eb5a780
..
6bb7bfa
100644
(file)
--- 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 {