Package com.finiac.exception

Examples of com.finiac.exception.LoginException


  }
 
  public boolean userLogin(HttpServletRequest request, String userName, String password)throws Exception
  {
    if(userName==null || password == null)
      throw new LoginException();
    String cryptPassword = DigestUtils.sha256Hex(password +passwordHashPadding);
    User user = new User();
    List<User> userList=userDAO.selectUser(userName,cryptPassword);
    if(userList.size()==0)
      throw new LoginException();
    for(int i=0;i<userList.size();i++)
    {
      user = userList.get(i);
    }
    request.getSession().setAttribute("userName", user.getUserName());
View Full Code Here

TOP

Related Classes of com.finiac.exception.LoginException

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.