Пример #1
0
 /**
  * @see	\wcf\form\IForm::validate()
  */
 public function validate()
 {
     $this->validateAvatar();
     parent::validate();
 }
Пример #2
0
 /**
  * @see	\wcf\form\IForm::validate()
  */
 public function validate()
 {
     // validate captcha first
     $this->validateCaptcha();
     parent::validate();
     // validate registration time
     if (!$this->isExternalAuthentication && (!WCF::getSession()->getVar('registrationStartTime') || TIME_NOW - WCF::getSession()->getVar('registrationStartTime') < self::$minRegistrationTime)) {
         throw new UserInputException('registrationStartTime', array());
     }
 }