This commit is contained in:
cys841515238
2023-03-02 17:01:11 +08:00
parent 2733a60b97
commit efb3840f9d
2 changed files with 5 additions and 5 deletions

View File

@@ -214,8 +214,8 @@ public class MyUserController {
if (user.getPassword() == null) {
return R.error(500,"当前未设置密码,请使用验证码登录!");
}
// if (MD5Utils.getSaltverifyMD5(password,user.getPassword())){
if(true){
if (MD5Utils.getSaltverifyMD5(password,user.getPassword())){
// if(true){
R r = sysUserTokenService.createToken(user.getId());
return R.ok("登陆成功!").put("userInfo",user).put("token",r);
}else {