Constructor
new Captcha()
Construct a new captcha.
- Source:
Returns:
A new captcha.
Methods
getCaptcha()
Get a new captcha object.
- Source:
Returns:
A new captcha object.
renderImage()
Render a new captcha image.
- Source:
toString()
Get a string representation of the captcha object.
- Source:
Returns:
A string representation of the captcha object.
validate(input)
Validate a user's input with the prompted captcha.
Parameters:
Name | Type | Description |
---|---|---|
input |
String | The user's input. |
- Source:
Returns:
True if the user's input matches the captcha.