StudioBonito\SilverStripe\SpamProtection\Honeypot\FormField\HoneypotField
Synopsis
class HoneypotField
extends HiddenField
{
- // members
- private static integer $time_limit = 5;
- // methods
- public bool validate()
- public string Type()
- public string Field()
- protected string createHoneypotField()
- protected string createTimestampField()
Hierarchy
Extends
- HiddenField
Members
private
- $time_limit
—
int
The number of seconds before you can submit a valid request.
Methods
protected
- createHoneypotField() — Create the Captcha Field.
- createTimestampField() — Create the Timestamp Field.
public
- Field() — Override the Field to add the Captcha and Timestamp fields.
- Type() — Override the Type to remove the class namespace.
- validate() — Reject the field if the honeypot has been filled or if the form has been submitted to quickly.