protected boolean checkUserPwd( HttpServletResponse response, String API_CODE, User user, String pwd) throws IOException { if (!user.getPwd().equals(Encrypt.encrypt(pwd))) { sendAjaxResult(response, getErrorMsg(API_CODE, "02")); return false; } return true; }
protected boolean checkUserPwd(User user, String pwd) { return user.getPwd().equals(Encrypt.encrypt(pwd)); }