Beispiel #1
0
 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;
 }
Beispiel #2
0
 protected boolean checkUserPwd(User user, String pwd) {
   return user.getPwd().equals(Encrypt.encrypt(pwd));
 }