From 83aeef1d8602b04716b86790a023bb0211fa25ce Mon Sep 17 00:00:00 2001 From: Preetham Date: Wed, 12 Nov 2014 08:36:35 -0500 Subject: Closing #656 and updating documentation Signed-off-by: Preetham --- user_guide_src/source/helpers/captcha_helper.rst | 3 +++ 1 file changed, 3 insertions(+) (limited to 'user_guide_src/source/helpers/captcha_helper.rst') diff --git a/user_guide_src/source/helpers/captcha_helper.rst b/user_guide_src/source/helpers/captcha_helper.rst index 1b74d08ad..556434a50 100644 --- a/user_guide_src/source/helpers/captcha_helper.rst +++ b/user_guide_src/source/helpers/captcha_helper.rst @@ -33,6 +33,7 @@ Once loaded you can generate a CAPTCHA like this:: 'img_height' => 30, 'expiration' => 7200, 'word_length' => 8, + 'font_size' =>16, 'pool' => '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', // White background and border, black text and red grid @@ -59,8 +60,10 @@ Once loaded you can generate a CAPTCHA like this:: in the captcha folder before it will be deleted. The default is two hours. - **word_length** defaults to 8, **pool** defaults to '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' +- **font_size** defaults to 16, the native GD font has a size limit. Specify a TRUE TYPE font for bigger sizes. - If any of the **colors** values is missing, it will be replaced by the default. + Adding a Database ----------------- -- cgit v1.2.3-24-g4f1b From 36273563c30a4570c9547a34e45440de48128457 Mon Sep 17 00:00:00 2001 From: Preetham Date: Wed, 12 Nov 2014 08:46:03 -0500 Subject: Removing extra spaces. Signed-off-by: Preetham --- user_guide_src/source/helpers/captcha_helper.rst | 1 - 1 file changed, 1 deletion(-) (limited to 'user_guide_src/source/helpers/captcha_helper.rst') diff --git a/user_guide_src/source/helpers/captcha_helper.rst b/user_guide_src/source/helpers/captcha_helper.rst index 556434a50..925dcdf45 100644 --- a/user_guide_src/source/helpers/captcha_helper.rst +++ b/user_guide_src/source/helpers/captcha_helper.rst @@ -63,7 +63,6 @@ Once loaded you can generate a CAPTCHA like this:: - **font_size** defaults to 16, the native GD font has a size limit. Specify a TRUE TYPE font for bigger sizes. - If any of the **colors** values is missing, it will be replaced by the default. - Adding a Database ----------------- -- cgit v1.2.3-24-g4f1b From bfa16449fe533ece12064074204beffcc5b39163 Mon Sep 17 00:00:00 2001 From: Preetham Date: Wed, 12 Nov 2014 10:26:24 -0500 Subject: removed additional tabs and semicolon Signed-off-by: Preetham --- user_guide_src/source/helpers/captcha_helper.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'user_guide_src/source/helpers/captcha_helper.rst') diff --git a/user_guide_src/source/helpers/captcha_helper.rst b/user_guide_src/source/helpers/captcha_helper.rst index 925dcdf45..3cf51330b 100644 --- a/user_guide_src/source/helpers/captcha_helper.rst +++ b/user_guide_src/source/helpers/captcha_helper.rst @@ -33,7 +33,7 @@ Once loaded you can generate a CAPTCHA like this:: 'img_height' => 30, 'expiration' => 7200, 'word_length' => 8, - 'font_size' =>16, + 'font_size' => 16, 'pool' => '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', // White background and border, black text and red grid @@ -60,7 +60,7 @@ Once loaded you can generate a CAPTCHA like this:: in the captcha folder before it will be deleted. The default is two hours. - **word_length** defaults to 8, **pool** defaults to '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' -- **font_size** defaults to 16, the native GD font has a size limit. Specify a TRUE TYPE font for bigger sizes. +- **font_size** defaults to 16, the native GD font has a size limit. Specify a "true type" font for bigger sizes. - If any of the **colors** values is missing, it will be replaced by the default. Adding a Database -- cgit v1.2.3-24-g4f1b From e29136567e2a12726f9ab40762bcb47a7cde759c Mon Sep 17 00:00:00 2001 From: Preetham Date: Thu, 4 Dec 2014 21:01:52 -0500 Subject: closing #51. Added img_id and img_name in capcha helper Signed-off-by: Preetham --- user_guide_src/source/helpers/captcha_helper.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'user_guide_src/source/helpers/captcha_helper.rst') diff --git a/user_guide_src/source/helpers/captcha_helper.rst b/user_guide_src/source/helpers/captcha_helper.rst index 3cf51330b..7d7f30de8 100644 --- a/user_guide_src/source/helpers/captcha_helper.rst +++ b/user_guide_src/source/helpers/captcha_helper.rst @@ -34,6 +34,8 @@ Once loaded you can generate a CAPTCHA like this:: 'expiration' => 7200, 'word_length' => 8, 'font_size' => 16, + 'img_id' => 'Image id', + 'img_name' => 'Image name', 'pool' => '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', // White background and border, black text and red grid @@ -60,7 +62,9 @@ Once loaded you can generate a CAPTCHA like this:: in the captcha folder before it will be deleted. The default is two hours. - **word_length** defaults to 8, **pool** defaults to '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' -- **font_size** defaults to 16, the native GD font has a size limit. Specify a "true type" font for bigger sizes. +- **font_size** defaults to 16, the native GD font has a size limit. Specify a "true type" font for bigger sizes. +- The **img_id** will be set as the "id" of the captcha image. +- The **img_name** will be set as the "name" of the captcha image. - If any of the **colors** values is missing, it will be replaced by the default. Adding a Database -- cgit v1.2.3-24-g4f1b From be7e493fd7a4dcc8f00b60201d4948f3618d9b6a Mon Sep 17 00:00:00 2001 From: Preetham Date: Fri, 5 Dec 2014 11:13:57 -0500 Subject: Removed img_name from captcha helper Signed-off-by: Preetham --- user_guide_src/source/helpers/captcha_helper.rst | 2 -- 1 file changed, 2 deletions(-) (limited to 'user_guide_src/source/helpers/captcha_helper.rst') diff --git a/user_guide_src/source/helpers/captcha_helper.rst b/user_guide_src/source/helpers/captcha_helper.rst index 7d7f30de8..6e0cfc979 100644 --- a/user_guide_src/source/helpers/captcha_helper.rst +++ b/user_guide_src/source/helpers/captcha_helper.rst @@ -35,7 +35,6 @@ Once loaded you can generate a CAPTCHA like this:: 'word_length' => 8, 'font_size' => 16, 'img_id' => 'Image id', - 'img_name' => 'Image name', 'pool' => '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', // White background and border, black text and red grid @@ -64,7 +63,6 @@ Once loaded you can generate a CAPTCHA like this:: - **word_length** defaults to 8, **pool** defaults to '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' - **font_size** defaults to 16, the native GD font has a size limit. Specify a "true type" font for bigger sizes. - The **img_id** will be set as the "id" of the captcha image. -- The **img_name** will be set as the "name" of the captcha image. - If any of the **colors** values is missing, it will be replaced by the default. Adding a Database -- cgit v1.2.3-24-g4f1b From 6157e52f1988c3640082fe6fd323ebbc07887259 Mon Sep 17 00:00:00 2001 From: Preetham Date: Fri, 5 Dec 2014 12:19:09 -0500 Subject: removing extra spaces Signed-off-by: Preetham --- user_guide_src/source/helpers/captcha_helper.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'user_guide_src/source/helpers/captcha_helper.rst') diff --git a/user_guide_src/source/helpers/captcha_helper.rst b/user_guide_src/source/helpers/captcha_helper.rst index 6e0cfc979..4aacafd49 100644 --- a/user_guide_src/source/helpers/captcha_helper.rst +++ b/user_guide_src/source/helpers/captcha_helper.rst @@ -34,7 +34,7 @@ Once loaded you can generate a CAPTCHA like this:: 'expiration' => 7200, 'word_length' => 8, 'font_size' => 16, - 'img_id' => 'Image id', + 'img_id' => 'Imageid', 'pool' => '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', // White background and border, black text and red grid -- cgit v1.2.3-24-g4f1b