diff --git a/src/main/java/com/yipin/liuwanr/service/UserInfoService.java b/src/main/java/com/yipin/liuwanr/service/UserInfoService.java index fbda212..6ff0524 100644 --- a/src/main/java/com/yipin/liuwanr/service/UserInfoService.java +++ b/src/main/java/com/yipin/liuwanr/service/UserInfoService.java @@ -400,7 +400,7 @@ public class UserInfoService { HashMap resp = new HashMap(); HashMap obj = new HashMap(); UserInfo userInfo = new UserInfo(); - userInfo.setPassword(password); + userInfo.setPassword(MD5.encrypt(password)); userInfo.setSchoolId(schoolId); if (source == 0){ //账号 @@ -429,7 +429,7 @@ public class UserInfoService { boolean num = false; if (user != null){ //校验密码 - num = MD5.encrypt(password).equals(user.getPassword()); + num = userInfo.getPassword().equals(user.getPassword()); } if(user!=null && num) {