mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-10-13 21:30:25 +00:00
fix 密码修改校验问题
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user