Skip to content
Snippets Groups Projects
Commit 77ed9dac authored by Jeff Geerling's avatar Jeff Geerling
Browse files

Update flood rate monitoring.

parent be6d91d5
No related branches found
No related tags found
No related merge requests found
......@@ -252,7 +252,7 @@ function honeypot_get_time_limit($form_values = array()) {
// Get value from {flood} table for anonymous users.
else {
$number = db_query("SELECT COUNT(*) FROM {flood} WHERE event = :event AND identifier = :hostname AND timestamp > :time", array(
':event' => 'honeypot',
':event' => 'honeypot.event',
':hostname' => Drupal::request()->getClientIp(),
':time' => time() - \Drupal::config('honeypot.settings')->get('expire'),
))->fetchField();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment