Add bypass_code configuration parameter to force captcha validation for development/automation.
This commit is contained in:
@ -47,7 +47,10 @@ class CaptchaType extends AbstractType
|
||||
$this->key = $builder->getForm()->getName();
|
||||
|
||||
$builder->addValidator(
|
||||
new CaptchaValidator($this->session, $this->key, $options['invalid_message'])
|
||||
new CaptchaValidator($this->session,
|
||||
$this->key,
|
||||
$options['invalid_message'],
|
||||
$options['bypass_code'])
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user