Package org.encuestame.utils.security

Examples of org.encuestame.utils.security.ForgotPasswordBean


    /**
     * Test {@link ForgotPasswordBean}.
     */
    @Test
    public void testUnitForgotPassword(){
        final ForgotPasswordBean password = new ForgotPasswordBean();
        password.setCaptcha("catpcha");
        password.setEmail("juanATencuestame.org");
        assertNotNull(password.getCaptcha());
        assertNotNull(password.getEmail());
    }
View Full Code Here


     * @return
     */
    @RequestMapping(value = "/user/forgot", method = RequestMethod.GET)
    public String addHandler(Model model) {
        log.info("/forgot");
        final ForgotPasswordBean forgot = new ForgotPasswordBean();
        final String captcha = getReCaptcha().createRecaptchaHtml(null, null);
        forgot.setCaptcha(captcha);
        model.addAttribute(forgot);
        return "forgot";
    }
View Full Code Here

                            log.error("Error Renewd password " + e.getMessage());
                            return "forgot";
                        }
                        status.setComplete();
                        log.info("password generated: " + password);
                        final ForgotPasswordBean forgot = new ForgotPasswordBean();
                        model.addAttribute("forgotPasswordBean", forgot);
                        return "/user/checkyouremail";
                    }
                } else {
                    log.info("EMAIL FORMAT NOT VALID");
View Full Code Here

TOP

Related Classes of org.encuestame.utils.security.ForgotPasswordBean

Copyright © 2018 www.massapicom. 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.