summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/helpers/captcha_helper.rst
diff options
context:
space:
mode:
authorash <ashleybaker@gmail.com>2013-04-10 14:59:42 +0200
committerash <ashleybaker@gmail.com>2013-04-10 14:59:42 +0200
commit29ae72d893627edb07ad4fa124f4f8c4e1e0df34 (patch)
treed7b91aba1855339907b1774dbede9301d8630dcc /user_guide_src/source/helpers/captcha_helper.rst
parent4fa6385ff8232273f15f08fe8ef2799c9305419b (diff)
removed sanity checks (developer-supplied value, not user input), added changelog entry, changed variable names
Diffstat (limited to 'user_guide_src/source/helpers/captcha_helper.rst')
-rw-r--r--user_guide_src/source/helpers/captcha_helper.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/user_guide_src/source/helpers/captcha_helper.rst b/user_guide_src/source/helpers/captcha_helper.rst
index 7dd642ae7..c6fb00280 100644
--- a/user_guide_src/source/helpers/captcha_helper.rst
+++ b/user_guide_src/source/helpers/captcha_helper.rst
@@ -63,8 +63,8 @@ Once loaded you can generate a captcha like this::
'img_width' => '150',
'img_height' => 30,
'expiration' => 7200,
- 'captcha_word_length' => 8,
- 'character_pool_for_generated_word' => '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
+ 'word_length' => 8,
+ 'pool' => '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
);
$cap = create_captcha($vals);
@@ -81,7 +81,7 @@ Once loaded you can generate a captcha like this::
- The **expiration** (in seconds) signifies how long an image will remain
in the captcha folder before it will be deleted. The default is two
hours.
-- **captcha_word_length** defaults to 8 but a sanity check in /system/helpers/captcha_helper.php will enforce it to a minimum length of 4 or maximum length of 15, **character_pool_for_generated_word** defaults to '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
+- **word_length** defaults to 8, **pool** defaults to '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
Adding a Database
-----------------