|
|
@ -244,7 +244,7 @@ public class UmsUserServiceImpl extends ServiceImpl<UmsUserMapper, UmsUser> impl |
|
|
|
} |
|
|
|
} |
|
|
|
UmsUser umsUser = userList.get(0); |
|
|
|
UmsUser umsUser = userList.get(0); |
|
|
|
if(!passwordEncoder.matches(param.getOldPassword(),umsUser.getPassword())){ |
|
|
|
if(!passwordEncoder.matches(param.getOldPassword(),umsUser.getPassword())){ |
|
|
|
throw new BusinessException(400,"密码重复"); |
|
|
|
throw new BusinessException(400,"原密码错误"); |
|
|
|
} |
|
|
|
} |
|
|
|
umsUser.setPassword(passwordEncoder.encode(param.getNewPassword())); |
|
|
|
umsUser.setPassword(passwordEncoder.encode(param.getNewPassword())); |
|
|
|
updateById(umsUser); |
|
|
|
updateById(umsUser); |
|
|
|