This commit is contained in:
parent
7d95a14b71
commit
20113e24fa
|
|
@ -626,7 +626,7 @@ public class SysUserServiceImpl implements ISysUserService {
|
|||
throw new ServiceException("新密码不能包含超过" + systemConfig.getPasswordConfig().getMaxConsecutiveChars() + "位连续字符!");
|
||||
}
|
||||
// 根据用户id查询用户信息
|
||||
SysUser userInfo = userMapper.selectUserById(SecurityUtils.getUserId());
|
||||
SysUser userInfo = userMapper.selectUserById(user.getUserId());
|
||||
boolean isNewPassword = SecurityUtils.matchesPassword(decrypt, userInfo.getPassword());
|
||||
if (isNewPassword) {
|
||||
throw new ServiceException("新密码不能与旧密码相同!");
|
||||
|
|
|
|||
Loading…
Reference in New Issue