解决无法登陆问题

master
chen 4 years ago
parent 43ddb4d2fb
commit 2f33e4f522
  1. 4
      src/main/java/com/yipin/liuwanr/service/UserInfoService.java

@ -400,7 +400,7 @@ public class UserInfoService {
HashMap<String, Object> resp = new HashMap<String, Object>();
HashMap<String, Object> obj = new HashMap<String, Object>();
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) {

Loading…
Cancel
Save