Examples of addErrorCode()


Examples of com.jeecms.cms.web.WebErrors.addErrorCode()

      HttpServletRequest request, HttpServletResponse response) {
    WebErrors errors = WebErrors.create(request);
    try {
      if (!imageCaptchaService.validateResponseForID(session
          .getSessionId(request, response), captcha)) {
        errors.addErrorCode("error.invalidCaptcha");
        return errors;
      }
    } catch (CaptchaServiceException e) {
      errors.addErrorCode("error.exceptionCaptcha");
      log.warn("", e);
View Full Code Here

Examples of com.jeecms.cms.web.WebErrors.addErrorCode()

          .getSessionId(request, response), captcha)) {
        errors.addErrorCode("error.invalidCaptcha");
        return errors;
      }
    } catch (CaptchaServiceException e) {
      errors.addErrorCode("error.exceptionCaptcha");
      log.warn("", e);
      return errors;
    }
    if (errors.ifBlank(title, "title", 150)) {
      return errors;
View Full Code Here

Examples of com.jeecms.cms.web.WebErrors.addErrorCode()

    MemberConfig mcfg = site.getConfig().getMemberConfig();
    WebErrors errors = WebErrors.create(request);
    try {
      if (!imageCaptchaService.validateResponseForID(session
          .getSessionId(request, response), captcha)) {
        errors.addErrorCode("error.invalidCaptcha");
        return errors;
      }
    } catch (CaptchaServiceException e) {
      errors.addErrorCode("error.exceptionCaptcha");
      log.warn("", e);
View Full Code Here

Examples of com.jeecms.cms.web.WebErrors.addErrorCode()

          .getSessionId(request, response), captcha)) {
        errors.addErrorCode("error.invalidCaptcha");
        return errors;
      }
    } catch (CaptchaServiceException e) {
      errors.addErrorCode("error.exceptionCaptcha");
      log.warn("", e);
      return errors;
    }
    if (errors.ifOutOfLength(username, "username",
        mcfg.getUsernameMinLen(), 100)) {
View Full Code Here

Examples of com.jeecms.cms.web.WebErrors.addErrorCode()

    if (errors.ifMaxLength(email, "email", 100)) {
      return errors;
    }
    // 保留字检查不通过,返回false。
    if (!mcfg.checkUsernameReserved(username)) {
      errors.addErrorCode("error.usernameReserved");
      return errors;
    }
    // 用户名存在,返回false。
    if (unifiedUserMng.usernameExist(username)) {
      errors.addErrorCode("error.usernameExist");
View Full Code Here

Examples of com.jeecms.cms.web.WebErrors.addErrorCode()

      errors.addErrorCode("error.usernameReserved");
      return errors;
    }
    // 用户名存在,返回false。
    if (unifiedUserMng.usernameExist(username)) {
      errors.addErrorCode("error.usernameExist");
      return errors;
    }
    return errors;
  }
View Full Code Here

Examples of com.jeecms.cms.web.WebErrors.addErrorCode()

  private WebErrors validateActive(String username, String activationCode,
      HttpServletRequest request, HttpServletResponse response) {
    WebErrors errors = WebErrors.create(request);
    if (StringUtils.isBlank(username)
        || StringUtils.isBlank(activationCode)) {
      errors.addErrorCode("error.exceptionParams");
      return errors;
    }
    UnifiedUser user = unifiedUserMng.getByUsername(username);
    if (user == null) {
      errors.addErrorCode("error.usernameNotExist");
View Full Code Here

Examples of com.jeecms.cms.web.WebErrors.addErrorCode()

      errors.addErrorCode("error.exceptionParams");
      return errors;
    }
    UnifiedUser user = unifiedUserMng.getByUsername(username);
    if (user == null) {
      errors.addErrorCode("error.usernameNotExist");
      return errors;
    }
    if (user.getActivation()
        || StringUtils.isBlank(user.getActivationCode())) {
      errors.addErrorCode("error.usernameActivated");
View Full Code Here

Examples of com.jeecms.cms.web.WebErrors.addErrorCode()

      return errors;
    }
    try {
      if (!imageCaptchaService.validateResponseForID(session
          .getSessionId(request, response), captcha)) {
        errors.addErrorCode("error.invalidCaptcha");
        return errors;
      }
    } catch (CaptchaServiceException e) {
      errors.addErrorCode("error.exceptionCaptcha");
      log.warn("", e);
View Full Code Here

Examples of com.jeecms.cms.web.WebErrors.addErrorCode()

          .getSessionId(request, response), captcha)) {
        errors.addErrorCode("error.invalidCaptcha");
        return errors;
      }
    } catch (CaptchaServiceException e) {
      errors.addErrorCode("error.exceptionCaptcha");
      log.warn("", e);
      return errors;
    }
    return errors;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.