myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [myexperiment-hackers] Captcha error


From: Finn Bacall
Subject: Re: [myexperiment-hackers] Captcha error
Date: Thu, 05 Jan 2012 11:33:54 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Thunderbird/3.1.16

Hi David,

Personally, option 3 seems like the most sensible one to me - or we could at least have captcha's ignored automatically when the server is in development mode (as they are when it is in test mode).

As far as I can tell, validates_captcha is only used in 3 places: user registration, submitting feedback and sending group invitations to people not yet registered and so shouldn't be too difficult to remove.

I created a JIRA issue for it:
http://www.mygrid.org.uk/dev/issues/browse/MYEXP-95

-Finn

On 05/01/12 11:00, David R Newman wrote:
Hi Finn,

This is a known issue with new installs since we migrated to Rails 2.
The problem is caused because the validates_captcha plugin that is
frozen in our codebase not working with Rails 2.

I have posted a temporary workaround on the Fedora Installation page
(http://wiki.myexperiment.org/index.php/Developer:FedoraInstallation)
but at the time I thought it was a Fedora (the packaged version of ruby
it uses) rather than Rails 2 problems.  I will add this workaround to
the Ubuntu installation page.  However, this workaround just disables
the captcha altogether, so this is why the codebase itself hasn't been
updated.

Don, Danius and I have discussed a few solution for this:

1.  Just used ReCaptcha instead.  You can change the options in your
settings file to do that.  However, you will need to get a license key
so you can fill in recaptcha_public and recaptcha_public.  This may not
be ideal for some developers as it creates extra hassle but it is what
we are currently doing on the main site.

2.  Replace the validates_captcha with a more suitable captcha gem, that
I know to exist.  However, this require a fair amount of work.

3. Only support ReCaptcha but allow the developer to enable or disable
it so that can just not have captchas whilst they are doing development
and enable when they deploy.  This also requires so work to implement.

Regards

David Newman


On Thu, 2012-01-05 at 10:40 +0000, Finn Bacall wrote:
In the latest version of the trunk I get an error when visiting the
registration page:

-----
ActionView::TemplateError: uninitialized constant
FleskPlugins::CaptchaConfig::PStore
      On line #37 of app/views/users/new.rhtml

          34:<table style="margin-top: 2em;">
          35:<tr>
          36:<td>
          37:<% c = prepare_captcha :type =>  :image -%>
          38:<%= captcha_image_tag c -%>
          39:</td>
          40:<td style="vertical-align: top;">
-----

I have the following settings in my settings.yml file:
      recaptcha_enable: false
      recaptcha_public:
      recaptcha_private:

Any ideas?

-Finn



_______________________________________________
myexperiment-hackers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/myexperiment-hackers


--
Finn Bacall
School of Computer Science
University of Manchester
http://www.myexperiment.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]