/** * @see \wcf\form\IForm::validate() */ public function validate() { $this->validateAvatar(); parent::validate(); }
/** * @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()); } }