Active
Project:
Janrain Social Login
Version:
7.x-2.2
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
22 Apr 2011 at 21:04 UTC
Updated:
4 Jul 2013 at 11:48 UTC
Any suggestions for configuring Engage with captcha. I want a captcha to prevent bot sign ups, but Engage logins fail when it is enabled on the login form.
Any suggestions are appreciated.
Comments
Comment #1
geokat commentedWhat captcha module are you using?
Comment #2
kreynen commentedI'm currently using captcha with recaptcha, but I'm willing to change the captcha module.
Comment #3
BenK commentedWe also should support the Mollom module (http://drupal.org/project/mollom) as it is really popular in the Drupal community for implementing captchas. If this is indeed a problem we definitely need to fix this. I'll need to test to see if I can reproduce the problem.
--Ben
Comment #4
BenK commentedI tried this out with Mollom and the issue becomes that the Mollom word verification always fails the first time around because the Mollom captcha obviously isn't a part of the Janrain Engage widget. As a result, the following error is displayed:
The question is whether there is some way to programmatically bypass the Mollom word verification if the user is authenticating with Janrain Engage (and is obviously verifying their legitimate identity by doing so).
--Ben
Comment #5
geokat commentedI think there is a way.
Comment #6
BenK commentedHey George,
Yes, it turns out there is a fairly straightforward way to solve the Mollom issue. Check out this thread for details:
http://drupal.org/node/1150516
--Ben
Comment #7
geokat commentedThanks, Ben!
Still need to investigate for other popular captcha modules out there.
Cheers,
George
Comment #8
kreynen commented@geokat... I don't think anyone is questioning whether it's possible. I was asking for recommendations on the approach so that the time I spend writing a patch has a better chance of getting committed.
I think the easiest way to accomplish this is to override the #validate functions with duplicate functions that check for rpx data. I there is no rpx data, call the original function. This is going to be easier with Mollom than Captcha since Mollom only has a single set of functions...
Captcha loads a function from each type of captcha in most cases...
Even though Captcha is a bit more complicated, it's 4x as popular as Mollom (96K/27K sites). If everyone agrees that creating custom validation functions that process the original validation when users loggin without rpx data, does it make sense to write this as a separate module in a separate project since it could need to be updated as often as the captcha modules update?
Comment #9
kreynen commentedI really need this now, so I'm going to move forward with a separate module to override the form validation. The approach sun suggested in #1150516: Bypassing Mollom checks programmatically leads to PHP notices for Mollom is similar, but since Captcha lacks that form_state setting I'm going to use an approach that will work for both.
Comment #10
BenK commented@kreynen: Sounds good. When you've got a project page up, post a link on this issue and we'll take a look. Do you plan to just support Captcha or do a more abstracted approach that also support Mollom?
--ben
Comment #11
geokat commentedAdded support for Captcha (and sub-modules) and Mollom in 7.x-2.x. If
somebody's going to test this: user registration form is the only form
involved in this integration.
Thanks,
George
Comment #12
geokat commentedComment #13
geokat commentedAdded in 6.x-2.x as well.
Comment #14
BenK commentedI've tested both the Mollom and Captcha module integrations in D7 and this is working great... no problems at all. Nice work, George. Marking this as fixed!
--Ben
Comment #16
eidolon nightI'm actually still having issues with the Captcha module (with ReCaptcha) and Janrain (both the stable and latest dev). I get shot over to the registration page with the error "The answer you entered for the CAPTCHA was not correct."
Comment #17
mkrkarthi commentedI am using Captcha module.
Users logged in using Janrain Engage are asked to enter the correct Captcha.
Could not bypass Captcha verification, Again the registration form displayed, which leads to edit other fields such as email etc.,
How to rectify this problem?
Comment #18
geokat commentedThis could be some change in the latest version of Captcha breaking the integration.
Comment #19
Marcus 78 commentedJust posting to say that this problem still exists on 2.2. I´ve only got captcha on registration but it asks for correct reply on login.
Comment #20
ktrev commentedI didn't see the option to bypass captcha.Is this a front end setting.Right now after login I am getting the error "invalid captcha"
I am using janrain version 7.x-2.4 and captcha version 7.x-1.0-beta2 and recaptcha version 7.x-1.9