petabyte-research / redflags

Automagically checks and filters risky public procurements
http://www.redflags.eu/
Apache License 2.0
4 stars 4 forks source link

Configuration to mock captcha #1

Closed KrzysztofMadejski closed 8 years ago

KrzysztofMadejski commented 8 years ago

The hack for now is:

To turn off captcha validation, edit hu.petabyte.redflags.web.svc.SecuritySvc and add this to validateCaptcha method as the first line:

if (1==1) return true;

Should be implemented as a configuration setting.

juzraai commented 8 years ago

I've just built in the option to turn off captcha. If you set site.useCaptcha application property to false it will not validate the captcha and also it won't display captcha on the site.

I will include it in the documentation.

KrzysztofMadejski commented 8 years ago

Thank you @juzraai! I'll reopen this issue to keep in mind it's not in the documentation yet.

juzraai commented 8 years ago

I've added it to the documentation. Currently it's here (but I may reorganize the webapp chapter later): http://docs.redflags.eu/developer/webapp/basic/#captcha