Package org.fluxtream.core.domain

Examples of org.fluxtream.core.domain.ResetPasswordToken




    message.setSubject("Fluxtream Reset password request");
    Map<String, String> vars = new HashMap<String, String>();
    ResetPasswordToken pToken = guestService.createToken(guest.getId());
    vars.put("token", pToken.token);
    vars.put("homeBaseUrl", env.get("homeBaseUrl"));
    if (guest.firstname != null && !guest.firstname.equals(""))
      vars.put("username", guest.firstname);
    else
View Full Code Here


  @RequestMapping(value = "/resetPassword")
  public ModelAndView resetPassword(HttpServletRequest request,
      @RequestParam("token") String token) throws Exception {
    List<String> errors = new ArrayList<String>();

    ResetPasswordToken pToken = guestService.getToken(token);
    Guest guest = null;
    if (pToken == null)
      errors.add("invalidToken");
    else {
      guest = guestService.getGuestById(pToken.guestId);
View Full Code Here

    if (password.length() < 8)
      errors.add("passwordTooShort");
    if (!password.equals(password2))
      errors.add("passwordsDontMatch");

    ResetPasswordToken pToken = guestService.getToken(token);
    long now = System.currentTimeMillis();
    int resetPasswordTokensExpireDelay = Integer.valueOf(env
        .get("resetPasswordTokensExpireDelay"));

    Guest guest = null;
View Full Code Here

TOP

Related Classes of org.fluxtream.core.domain.ResetPasswordToken

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.