public function configure()
 {
     $this->disableLocalCSRFProtection();
     $this->setWidget('mail_address', new sfWidgetFormInputText());
     $this->setValidator('mail_address', new sfValidatorPass());
     $callback = new sfValidatorCallback(array('callback' => array($this, 'validate')));
     $callback->setMessage('invalid', 'invalid e-mail address');
     $this->validatorSchema->setPostValidator($callback);
     if (sfConfig::get('op_is_use_captcha', false)) {
         $this->embedForm('captcha', new opCaptchaForm());
     }
     $this->widgetSchema->setNameFormat('request_register_url[%s]');
 }
 public function configure()
 {
     $this->setWidget('mail_address', new sfWidgetFormInput());
     $this->setValidator('mail_address', new sfValidatorPass());
     if ($this->getOption('invited')) {
         $this->setWidget('message', new sfWidgetFormTextarea());
         $this->setValidator('message', new sfValidatorPass());
         $this->widgetSchema->setLabel('message', 'Message(Arbitrary)');
     }
     $callback = new sfValidatorCallback(array('callback' => array($this, 'validate')));
     $callback->setMessage('invalid', 'invalid e-mail address');
     $this->validatorSchema->setPostValidator($callback);
 }
 public function configure()
 {
     $this->setWidget('mail_address', new sfWidgetFormInputText());
     $this->setValidator('mail_address', new sfValidatorPass());
     if ($this->getOption('invited')) {
         $this->setWidget('message', new sfWidgetFormTextarea());
         $this->setValidator('message', new sfValidatorPass());
         $this->widgetSchema->setLabel('message', 'Message(Arbitrary)');
     }
     $callback = new sfValidatorCallback(array('callback' => array($this, 'validate')));
     $callback->setMessage('invalid', 'invalid e-mail address');
     $this->validatorSchema->setPostValidator($callback);
     if (sfConfig::get('op_is_use_captcha', false)) {
         $this->embedForm('captcha', new opCaptchaForm());
     }
     if ('mobile_frontend' === sfConfig::get('sf_app')) {
         opToolkit::appendMobileInputModeAttributesForFormWidget($this->getWidget('mail_address'), 'alphabet');
     }
 }