Fix breaking user picking

This commit is contained in:
Ilia Ross
2025-05-06 01:27:28 +03:00
parent 0e78b101b4
commit 068780d24a

View File

@@ -45,7 +45,7 @@ foreach my $key ($ENV{'REMOTE_ADDR'},
$uuser ? ( $uuser->{'user'} ) : ( ),
$email ? ( $email ) : ( )) {
# Don't block if disabled
next if (!$failures || !$ptime);
next if (!$pfailures || !$ptime);
if (!$ratelimit{$key."_last"} ||
$ratelimit{$key."_last"} < $now-$ptime*60) {