Remove some debug, add return for login hook

develop
Steve Allison 2013-02-21 14:18:19 +00:00
parent 25ccada7c6
commit 3e52400d52
1 changed files with 3 additions and 2 deletions

View File

@ -201,7 +201,9 @@ class defense extends rcube_plugin {
header('HTTP/1.1 403 Forbidden'); header('HTTP/1.1 403 Forbidden');
die(); die();
} }
$this->debug("send login form");
$this->debug("Sending login form");
return $content
} }
/** /**
@ -273,7 +275,6 @@ class defense extends rcube_plugin {
$result = $this->rc->db->query($query, time(), 1, $this->ipaddr, serialize($data)); $result = $this->rc->db->query($query, time(), 1, $this->ipaddr, serialize($data));
if (!$result) { $this->dbError($query); return; } if (!$result) { $this->dbError($query); return; }
$this->debug($query . " [" . $result->rowCount() . "]"); $this->debug($query . " [" . $result->rowCount() . "]");
$this->debug("Ban set to: " . $duration . "s");
return; return;
} }