Package com.iisigroup.cap.security.captcha

Examples of com.iisigroup.cap.security.captcha.CapSecurityCaptcha.valid()


            String key = method.getAnnotation(Captcha.class)
                .value();
            CapSecurityCaptcha captcha = CapAppContext
                .getBean(CapCaptchaServlet.DEF_RENDERER);
            if (captcha == null
                || !CaptchaStatus.SUCCESS.equals(captcha
                    .valid(params.get(key)))) {
              // 驗証碼無效請重新輸入
              throw new CapMessageException(
                  CapAppContext.getMessage(captcha.getErrorMessage()),
                  getClass());
View Full Code Here


            if (captchaEnabled) {
                String cpatchaData = captchaCaptureFilter.getRequest()
                        .getParameter("captcha");
                CapSecurityCaptcha captcha = CapAppContext
                        .getBean(CapCaptchaServlet.DEF_RENDERER);
                captchaPassed = CaptchaStatus.SUCCESS.equals(captcha
                        .valid(cpatchaData));
                logger.debug("Is captcha valid: " + captchaPassed);
            } else {
                captchaPassed = true;
            }
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.