summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls
diff options
context:
space:
mode:
authorxue <>2007-08-30 15:40:24 +0000
committerxue <>2007-08-30 15:40:24 +0000
commitd1875fd32e0aa7a093544b5decd0b43499424d4f (patch)
tree223c67445e9a204cabf93274061e506889a2090a /demos/quickstart/protected/pages/Controls
parent8a6d62fbe24321bdd83afa118726f2bd14c7dfb3 (diff)
further enhanced TCaptcha.
Diffstat (limited to 'demos/quickstart/protected/pages/Controls')
-rw-r--r--demos/quickstart/protected/pages/Controls/Captcha.page6
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TCaptcha/Home.page4
2 files changed, 7 insertions, 3 deletions
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 <tt>TCaptcha</tt> can be configured in several ways. To s
</p>
<p>
-To specify the appearance of the generated token image, set <tt>TokenImageTheme</tt> 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 <tt>TokenFontSize</tt>. In particular, the image width is proportional to the font size. You may also set <tt>Width</tt> 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: <tt>TestLimit</tt> (defaults to 5 times) and <tt>TokenExpiry</tt> (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.
+</p>
+
+<p>
+To specify the appearance of the generated token image, set <tt>TokenImageTheme</tt> 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 <tt>TokenFontSize</tt>. In particular, the image width is proportional to the font size. You may also set <tt>Width</tt> to scale the generated image to your desired size, but the scaled image may not look good. By setting <tt>ChangingTokenBackground</tt> to true, the image background of the token will be variating even though the token is the same during postbacks.
</p>
<p>
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 @@
<h1>TCaptcha Samples</h1>
<h2>Validating CAPTCHA</h2>
-<com:TCaptcha ID="Captcha" TokenImageTheme="5"/>
+<com:TCaptcha ID="Captcha" TokenImageTheme="5" />
<com:TTextBox ID="Input" />
<com:TButton Text="Regenerate" OnClick="regenerateToken" CausesValidation="false" />
<com:TButton Id="SubmitButton" Text="Submit" OnClick="buttonClicked" />
-<com:TCaptchaValidator CaptchaControl="Captcha" ControlToValidate="Input" Text="error" />
+<com:TCaptchaValidator CaptchaControl="Captcha" ControlToValidate="Input" Text="You are challenged!" />
<h2>Different Themes of TCaptcha</h2>