fix 密码修改校验问题

This commit is contained in:
daxpay
2025-05-20 14:48:33 +08:00
parent 06052c41fc
commit 0ff4198ee1

View File

@@ -100,7 +100,7 @@ public class UserInfoService {
.orElseThrow(UserInfoNotExistsException::new);
// 判断原密码是否正确
if (!BCrypt.checkpw(newPassword, userInfo.getPassword())) {
if (!BCrypt.checkpw(password, userInfo.getPassword())) {
throw new BizException("旧密码错误");
}
userInfo.setPassword(newPassword);