No need for DB lookup during login unless 403

This commit is contained in:
Steve Allison 2013-02-22 19:02:27 +00:00
parent 7e66141336
commit 9af9edf09d

View File

@ -290,9 +290,9 @@ class defense extends rcube_plugin {
die(); die();
} }
if ($this->isBanned($this->ipaddr)) { if ($this->ban_httpstatus) && ($this->isBanned($this->ipaddr)) {
if ($this->ban_httpstatus) { $this->sendForbiddenHeader(); }
$this->debug("IP already banned"); $this->debug("IP already banned");
$this->sendForbiddenHeader();
} }
$this->debug("Sending login form."); $this->debug("Sending login form.");