Commit a4360f4c authored by elachlan's avatar elachlan

Issue #2474959 by alesr, egarbeil, DamienMcKenna, MaskOta, sudheeshps: CAPTCHA...

Issue #2474959 by alesr, egarbeil, DamienMcKenna, MaskOta, sudheeshps: CAPTCHA session reuse attack detected
parent 06adf369
......@@ -411,7 +411,8 @@ function _captcha_get_posted_captcha_info(array $element, FormStateInterface $fo
// Invalidate CAPTCHA token to avoid reuse.
\Drupal::database()->update('captcha_sessions')
->fields(['token' => NULL])
->condition('csid', $posted_captcha_sid);
->condition('csid', $posted_captcha_sid)
->execute();
}
}
else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment