railo-context.Componentcoldbox.system.FrameworkSupertype
coldbox.system.Plugin
contentbox.plugins.Captcha
plugin for CF8 built in captcha functionality
Constructor Summary | |
---|---|
init(any controller)
|
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 coldbox.system.Plugin |
---|
getpluginAuthor, getpluginAuthorURL, getPluginDescription, getPluginName, getpluginPath, getPluginVersion, getRequestCollection, getRequestContext, setpluginAuthor, setpluginAuthorURL, setPluginDescription, setPluginName, setPluginVersion |
Methods inherited from class coldbox.system.FrameworkSupertype |
---|
addAsset, announceInterception, getCache, getController, getDatasource, getInstance, getInterceptor, getModel, getModuleConfig, getModuleSettings, getMyPlugin, getPlugin, getRenderer, getSetting, getSettingStructure, includeUDF, loadApplicationHelpers, locateDirectoryPath, locateFilePath, persistVariables, populateModel, renderExternalView, renderLayout, renderView, runEvent, setController, setNextEvent, setSetting, settingExists |
Methods inherited from class railo-context.Component |
---|
None |
Constructor Detail |
---|
controller
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