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

Fix bug introduced by previous commit and document the line.

parent 53b21836
No related branches found
Tags 6.x-1.17
No related merge requests found
......@@ -223,6 +223,8 @@ function _honeypot_time_restriction_validate($element, &$form_state) {
// If not, throw an error.
if (time() < ($honeypot_time + $time_limit)) {
_honeypot_log($form_state['values']['form_id'], 'honeypot_time');
// Get the time limit again, since it increases after first failure.
$time_limit = honeypot_get_time_limit($form_state['values']);
$form_state['values']['honeypot_time'] = time();
form_set_error('', t('There was a problem with your form submission. Please wait @limit seconds and try again.', array('@limit' => $time_limit)));
}
......
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