Namespace core.user.captcha
Check for an organic life form.
Defined in: /data/corejs/master/user/captcha.js.
| Field Attributes | Field Name and Description |
|---|---|
| <static> | |
| <static> | |
|
namespace <static> |
|
| <static> | |
|
namespace <static> |
| Method Attributes | Method Name and Description |
|---|---|
|
img
<static> |
Captcha.img()
Create a captcha image
|
|
boolean
<static> |
Captcha.problem( Request request )
|
|
boolean
<static> |
Captcha.valid( Object HTTP )
|
Field Detail
<static>
Captcha.DEBUG
Toggle debug.
<static>
Captcha.USE
Which captcha method to use
<static>
namespace
Captcha.db
Using the database to save and check captchas
<static>
Captcha.hash
Hashing the captcha
<static>
namespace
Captcha.words
Create captcha content
Method Detail
<static>
{img}
Captcha.img()
Create a captcha image. response must be a valid HTTP response.
- Returns:
- img The captcha image
<static>
{boolean}
Captcha.problem( Request request )
Checks if the response to a given captcha was valid.
- Parameters:
- Request request
- the HTTP request
- Returns:
- boolean null if no problems, or the string describing the first problem found with the request
<static>
{boolean}
Captcha.valid( Object HTTP )
Checks if the user response to a captcha is valid.
- Parameters:
- Object HTTP
- request
- Returns:
- boolean Whether or not the input was valid

