Package com.narirelays.ems.security

Examples of com.narirelays.ems.security.IChangePassword.changePassword()


    if(iChangePassword!=null)
    {
      String oldPass = request.getParameter("oldPass");
      String newPass = request.getParameter("newPass");
      try{
        iChangePassword.changePassword(name, oldPass, newPass);//pass能否为空?
        resultInfo.setSucceed();
      }
      catch(BadCredentialsException e)
      {
        e.printStackTrace();
View Full Code Here


      {
        userName = privilegeManagementService.query4UserNameByID(userID);
      }
      String newPass = request.getParameter("newPass");
      try{
        iChangePassword.changePassword(userName,newPass);//pass能否为空?
        resultInfo.setSucceed();
      }
      catch(Exception e)
      {
        e.printStackTrace();
View Full Code Here

      username = (String) request.getSession()
      .getAttribute(UsernamePasswordAuthenticationFilter.SPRING_SECURITY_LAST_USERNAME_KEY);
    }
    if(username!=null){
      IChangePassword iChangePassword = (IChangePassword)StorageService.ctx.getBean("jdbcUserService");
      iChangePassword.changePassword(username, request.getParameter("password"));
    }
    resultInfo.setSucceed();
    return SUCCESS;
  }
 
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.