Browse Source

feat: 增加用户修改密码功能

chenjianhua 6 months ago
parent
commit
50e2174ed8

+ 1 - 1
service-manage/src/main/java/com/simuwang/manage/service/LoginService.java

@@ -136,7 +136,7 @@ public class LoginService {
         }
         SysUserDO entity = command.toEntity();
         entity.setUserId(userId);
-        entity.setPassword(newPwd);
+        entity.setPassword(command.getNewPassword());
         this.userAuthService.updatePwd(entity);
     }