예제 #1
0
 /**
  * @see wcf\form\IForm::submit()
  */
 public function submit()
 {
     try {
         parent::submit();
     } catch (NamedUserException $e) {
         WCF::getTPL()->assign('errorMessage', $e->getMessage());
     }
 }
예제 #2
0
 /**
  * @see	\wcf\form\IForm::submit()
  */
 public function submit()
 {
     parent::submit();
     // save authentication failure
     if (ENABLE_USER_AUTHENTICATION_FAILURE) {
         if ($this->errorField == 'username' || $this->errorField == 'password') {
             $action = new UserAuthenticationFailureAction(array(), 'create', array('data' => array('environment' => RequestHandler::getInstance()->isACPRequest() ? 'admin' : 'user', 'userID' => $this->user !== null ? $this->user->userID : null, 'username' => $this->username, 'time' => TIME_NOW, 'ipAddress' => UserUtil::getIpAddress(), 'userAgent' => UserUtil::getUserAgent())));
             $action->executeAction();
             if ($this->captchaObjectType) {
                 $this->captchaObjectType->getProcessor()->reset();
             }
         }
     }
 }