Commit 5f74f778 authored by Stefaan Lippens's avatar Stefaan Lippens
Browse files

Issue #960270: no need anymore for workaround for CAPTCHA on login forms

parent 3d3e759d
......@@ -646,14 +646,6 @@ function captcha_validate($element, &$form_state) {
// If CAPTCHA was on a login form: stop validating, quit the current request
// and forward to the current page (like a reload) to prevent loging in.
// We do that because the log in procedure, which happens after
// captcha_validate(), does not check error conditions of extra form
// elements like the CAPTCHA.
if ($form_id == 'user_login' || $form_id == 'user_login_block') {
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