lucee.Componentcontentbox.models.ui.Captcha
Create captchas
Constructor Summary | |
---|---|
init([any sessionStorage])
|
Method Summary | |
---|---|
private void
|
clearCaptcha()
|
any
|
display([numeric length='4'], [string text='[runtime expression]'], [string width='200'], [string height='50'], [string fonts='verdana,arial,times new roman,courier'], [string message='Please enter the correct code shown in the graphic.'])
I display the captcha and an error message, if appropriate. |
string
|
getCaptchaCode()
|
private any
|
getCaptchaStorage()
|
private boolean
|
isValidated()
|
private string
|
makeRandomString([numeric length='4'])
|
void
|
setCaptchaCode(string captchastring)
|
private void
|
setValidated(boolean validated)
|
boolean
|
validate(string code)
I validate the passed in string against the captcha code. |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
sessionStorage
Method Detail |
---|
I display the captcha and an error message, if appropriate
length
text
width
- width of captcha image in pixelsheight
- height of captcha image in pixelsfonts
- fonts to use for characters in captcha imagemessage
- Message to display below captcha if validate method failed.length
captchastring
validated
I validate the passed in string against the captcha code
code