zouxuan пре 5 година
родитељ
комит
3b6dd18335

+ 1 - 1
mec-auth/mec-auth-server/src/main/java/com/ym/mec/auth/web/controller/UserController.java

@@ -184,7 +184,7 @@ public class UserController extends BaseController {
 			if(!sysUser.getPhone().equals(phone)){
 				return failed("手机号校验失败");
 			}
-			if(new BCryptPasswordEncoder().matches(password,user.getPassword())){
+			if(new BCryptPasswordEncoder().matches(password,sysUser.getPassword())){
 				return succeed();
 			}else {
 				return failed("密码校验失败");