Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
drupal.org
captcha
Commits
5f74f778
Commit
5f74f778
authored
Nov 20, 2011
by
Stefaan Lippens
Browse files
Issue #960270: no need anymore for workaround for CAPTCHA on login forms
parent
3d3e759d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
captcha.module
captcha.module
+0
-8
No files found.
captcha.module
View file @
5f74f778
...
...
@@ -646,14 +646,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'
]);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment