From 343bf9a1a9af1a320d357307ed6d5f832bee1f10 Mon Sep 17 00:00:00 2001 From: Rafis Ganeyev Date: Fri, 3 Jan 2014 15:51:38 +0400 Subject: [PATCH] fix PRIVATE and PUBLIC keys order for new() --- doc/howto.md | 2 +- doc/index.html | 2 +- tests/recaptcha.cgi | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/howto.md b/doc/howto.md index 29734a0..213aa75 100644 --- a/doc/howto.md +++ b/doc/howto.md @@ -4,7 +4,7 @@ You will need to get your PRIVATE and PUBLIC API keys from recaptcha.net. Once you have them, create an instance or ReCaptcha like this: - captcha = recaptcha.new{PRIVATE, PUBLIC} + captcha = recaptcha.new{PUBLIC, PRIVATE} ## Generating the Widget diff --git a/doc/index.html b/doc/index.html index cd5a16e..44d13ce 100644 --- a/doc/index.html +++ b/doc/index.html @@ -93,7 +93,7 @@

Creating the catpcha object

You will need to get your PRIVATE and PUBLIC API keys from recaptcha.net. Once you have them, create an instance or ReCaptcha like this:

-
captcha = recaptcha.new{PRIVATE, PUBLIC}
+
captcha = recaptcha.new{PUBLIC, PRIVATE}
 

Generating the Widget

diff --git a/tests/recaptcha.cgi b/tests/recaptcha.cgi index 7136685..24f2d39 100755 --- a/tests/recaptcha.cgi +++ b/tests/recaptcha.cgi @@ -5,7 +5,7 @@ PRIVATE="" PUBLIC="" OWN_URL="/cgi-bin/recaptcha.cgi" -- you might need to change this -captcha = recaptcha.new{PRIVATE, PUBLIC} +captcha = recaptcha.new{PUBLIC, PRIVATE} return function(wsapi_env) require("wsapi.request")