From d1875fd32e0aa7a093544b5decd0b43499424d4f Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 30 Aug 2007 15:40:24 +0000 Subject: further enhanced TCaptcha. --- demos/quickstart/protected/pages/Controls/Captcha.page | 6 +++++- .../quickstart/protected/pages/Controls/Samples/TCaptcha/Home.page | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'demos/quickstart/protected') diff --git a/demos/quickstart/protected/pages/Controls/Captcha.page b/demos/quickstart/protected/pages/Controls/Captcha.page index 244a3adc..a0af13e5 100644 --- a/demos/quickstart/protected/pages/Controls/Captcha.page +++ b/demos/quickstart/protected/pages/Controls/Captcha.page @@ -16,7 +16,11 @@ The token generated by TCaptcha can be configured in several ways. To s
-To specify the appearance of the generated token image, set TokenImageTheme to be an integer between 0 and 31. You may try the following example to see how this value affects the generated token image. The size of the generated token image is determined by TokenFontSize. In particular, the image width is proportional to the font size. You may also set Width to scale the generated image to your desired size, but the scaled image may not look good. +The validation of the token is related with two properties: TestLimit (defaults to 5 times) and TokenExpiry (defaults to 600 seconds). The former specifies how many times a token can be tested with on the server side, and the latter says when a generated token will expire. If the validation fails in any of the two scenarios, a new token will be automatically generated. +
+ ++To specify the appearance of the generated token image, set TokenImageTheme to be an integer between 0 and 31. You may try the following example to see how this value affects the generated token image. The size of the generated token image is determined by TokenFontSize. In particular, the image width is proportional to the font size. You may also set Width to scale the generated image to your desired size, but the scaled image may not look good. By setting ChangingTokenBackground to true, the image background of the token will be variating even though the token is the same during postbacks.
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TCaptcha/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TCaptcha/Home.page index a0d97ac9..888573f0 100644 --- a/demos/quickstart/protected/pages/Controls/Samples/TCaptcha/Home.page +++ b/demos/quickstart/protected/pages/Controls/Samples/TCaptcha/Home.page @@ -2,11 +2,11 @@