Difference between revisions of "How to enable CAPTCHAs on your Dreamhack"
From Dreamwidth Notes
(clarification) |
(Pau helped me!) |
||
Line 27: | Line 27: | ||
: The 'demo' key for textcaptcha works for testing purposes. | : The 'demo' key for textcaptcha works for testing purposes. | ||
− | * Edit CAPTCHA settings as you desire at <code>~/dw/ext/local/etc/config.pl</code>. | + | * Edit CAPTCHA settings as you desire at <code>~/dw/ext/local/etc/config.pl</code>. If that file doesn't exist, copy <code>~/dw/ext/config.pl</code> there. |
[[Category:Development]] | [[Category:Development]] | ||
[[Category:Dreamhack]] | [[Category:Dreamhack]] | ||
[[Category:Getting Started]] | [[Category:Getting Started]] |
Revision as of 17:06, 27 November 2015
- Open
~/dw/ext/local/etc/config-local.pl
and make sure you have the following code:
# setup recaptcha %RECAPTCHA = ( public_key => $DW::PRIVATE::RECAPTCHA{public_key}, private_key => $DW::PRIVATE::RECAPTCHA{private_key}, ); # setup textcaptcha %TEXTCAPTCHA = ( api_key => $DW::PRIVATE::TEXTCAPTCHA{api_key}, );
- Open
~/dw/ext/local/etc/config-private.pl
and make sure you have the following code within the DW:PRIVATE section:
%RECAPTCHA = ( public_key => "key", private_key => "key", ); %TEXTCAPTCHA = ( api_key => "demo", timeout => 10, );
- Go to textCAPTCHA.com and reCAPTCHA to obtain keys and edit the code to add them. You only need one or the other, not necessarily both.
- The 'demo' key for textcaptcha works for testing purposes.
- Edit CAPTCHA settings as you desire at
~/dw/ext/local/etc/config.pl
. If that file doesn't exist, copy~/dw/ext/config.pl
there.