Commit 64810d5f authored by soxofaan's avatar soxofaan

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

parent 855288c8
......@@ -619,14 +619,6 @@ function captcha_validate($element, &$form_state) {
),
WATCHDOG_NOTICE);
}
// 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') {
drupal_goto($_GET['q']);
}
}
}
}
......
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