|
@@ -192,7 +192,7 @@ public class UserServiceImpl extends ServiceImpl<IUserMapper, User> implements I
|
|
throw new BusinessException(ResultCode.PARAM_ERROR);
|
|
throw new BusinessException(ResultCode.PARAM_ERROR);
|
|
}
|
|
}
|
|
if(StringUtils.isNotBlank(param.getPassword())){
|
|
if(StringUtils.isNotBlank(param.getPassword())){
|
|
- String oldPassword = Base64Converter.decode(Base64Converter.subText(param.getNewPassword()));
|
|
|
|
|
|
+ String oldPassword = Base64Converter.decode(Base64Converter.subText(param.getPassword()));
|
|
String passwordOldCode = SecurityUtil.MD5(oldPassword);
|
|
String passwordOldCode = SecurityUtil.MD5(oldPassword);
|
|
User user = this.getById(param.getId());
|
|
User user = this.getById(param.getId());
|
|
if(!user.getPassword().equals(passwordOldCode)){
|
|
if(!user.getPassword().equals(passwordOldCode)){
|