Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I disable the Captcha? #23

Closed
humborg opened this issue Oct 27, 2011 · 10 comments
Closed

How can I disable the Captcha? #23

humborg opened this issue Oct 27, 2011 · 10 comments
Assignees

Comments

@humborg
Copy link

humborg commented Oct 27, 2011

I've installed Coordino for my users to try as a collaborative knowledge base, and the captcha is a complete showstopper.

Is there a straightforward way to completely disable the captcha? I'm not afraid to modify the source files if it's necessary.

Thanks,
Kenn

@ghost ghost assigned Datawalke Oct 28, 2011
@Datawalke
Copy link
Owner

Kenn,

Thank you for posting this, we will port this feature into the Admin system.

@beyra
Copy link

beyra commented Oct 31, 2011

A quick way to disable the captcha is to change the line display_form('echo');?> right at the end of app/views/posts/ask.ctp to display_form('echo');?>

That will completely disable the captcha on the question page, but if you still want the captcha for non-registered users you could change it to check('Auth.User.id')){ $recaptcha->display_form('echo');} ?> which will check to see if the user is logged in or not and then display the captcha accordingly.

@beyra
Copy link

beyra commented Nov 1, 2011

Ooops. Didn't account for it checking the captcha...
You'll need to comment display_form('echo');?> in apps/views/posts/view.ctp as well.
Then in app/controllers/posts_controller.php on line 57 look for
$this->__validatePost($this->data, '/questions/ask', true);
and change it to
$this->__validatePost($this->data, '/questions/ask', false);
and then on line 87 find
$this->__validatePost($this->data, '/questions/' . $question['Post']['public_key'] . '/' . $question['Post']['url_title'] . '#user_answer', true);
and change it to
$this->__validatePost($this->data, '/questions/' . $question['Post']['public_key'] . '/' . $question['Post']['url_title'] . '#user_answer', false);

What I said previously only makes the captcha's visible element disappear, but it left the post controller intact so it still checked for the captcha resulting in an inevitable error. Sorry for any confusion.

@Datawalke
Copy link
Owner

Beyra,

In the next commit the captcha will be disabled by default and moved into the application settings that you will be able to update via the admin panel.

If you have any other suggestions please let me know!

Thank you.

@humborg
Copy link
Author

humborg commented Nov 4, 2011

Thanks Breya and Datawalke.

Looking forward to the next commit!

@victoriachan
Copy link

I'll +1 on this request. I have just installed Coordino today, and it is still enforcing captcha. Sadly the next commit has not happened yet.

It will be great to see this change. Thanks very much for the great app!

@anselmdk
Copy link

anselmdk commented Feb 9, 2012

+1 here as well.
Actually I have disabled it by default on the "titledk" fork for my own version, if you're interested. It's not very clean though, and was more though of as a fast fix.

@mediumraredigital
Copy link

+1 here for the Captcha removal too for unregistered users, thanks

@Datawalke
Copy link
Owner

You guys got it!

It will go into the next build along with the removal of short tags.

(Due March 17th.)

Jim Walker
Software Engineer
Brave Gamer LLC
P: (570) 430-8956

On Thu, Mar 1, 2012 at 8:16 AM, Charley Radcliffe <
reply@reply.github.com

wrote:

+1 here for the Captcha removal too for unregistered users, thanks


Reply to this email directly or view it on GitHub:
#23 (comment)

@Datawalke
Copy link
Owner

Captcha has been removed in the 1.3 release. (Currently the /next branch)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants