Examples of IForgotPasswordHandler


Examples of com.tll.service.IForgotPasswordHandler

      status.addMsg("An email address must be specified.", MsgLevel.ERROR, MsgAttr.STATUS.flag);
    }
    else {
      final ForgotPasswordServiceContext context = getContext();
      try {
        final IForgotPasswordHandler handler = context.getForgotPasswordHandler();
        final IUserRef user = handler.getUserRef(emailAddress);
        final String rp = handler.resetPassword(user.getId());
        data.put("username", user.getUsername());
        data.put("emailAddress", user.getEmailAddress());
        data.put("password", rp);
        final MailManager mailManager = context.getMailManager();
        final MailRouting mr = mailManager.buildAppSenderMailRouting(user.getEmailAddress());
View Full Code Here

Examples of com.tll.service.IForgotPasswordHandler

  @Override
  public void startup(Injector injector, ServletContext servletContext) {
    log.debug("Creating the ForgotPasswordServiceContext...");
    final MailManager mailManager = injector.getInstance(MailManager.class);
    final IExceptionHandler exceptionHandler = injector.getInstance(IExceptionHandler.class);
    final IForgotPasswordHandler handler = injector.getInstance(IForgotPasswordHandler.class);
    servletContext.setAttribute(ForgotPasswordServiceContext.KEY, new ForgotPasswordServiceContext(
        handler, mailManager, exceptionHandler));
  }
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.