From 2f33e4f522adfc742a954357fdca872780968995 Mon Sep 17 00:00:00 2001 From: chen <1251790704@qq.com> Date: Fri, 4 Jun 2021 17:41:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=97=A0=E6=B3=95=E7=99=BB?= =?UTF-8?q?=E9=99=86=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/yipin/liuwanr/service/UserInfoService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {