fix 企业端修改密码增加盐值
This commit is contained in:
+5
-4
@@ -104,11 +104,12 @@ public class PayContactsManagementServiceImpl extends ServiceImpl<PayContactsMan
|
|||||||
if (ObjectUtils.isEmpty(contactsManagement)) {
|
if (ObjectUtils.isEmpty(contactsManagement)) {
|
||||||
throw new JeroBootException("用户不存在");
|
throw new JeroBootException("用户不存在");
|
||||||
}
|
}
|
||||||
|
String salt = oConvertUtils.randomGen(8);
|
||||||
String managementPhone = contactsManagement.getPhone();
|
String managementPhone = contactsManagement.getPhone();
|
||||||
String passwordEncode = PasswordUtil.encrypt(PasswordUtil.decrypt(managementPhone), password, contactsManagement.getSalt());
|
String passwordEncode = PasswordUtil.encrypt(PasswordUtil.decrypt(managementPhone), password, salt);
|
||||||
companyLoginVO.setPassword(passwordEncode);
|
contactsManagement.setPassword(passwordEncode);
|
||||||
companyLoginVO.setPhone(managementPhone);
|
contactsManagement.setSalt(salt);
|
||||||
payContactsManagementMapper.forgetPassword(companyLoginVO);
|
this.saveOrUpdate(contactsManagement);
|
||||||
redisUtil.del("_verification:_phone:" + phone);
|
redisUtil.del("_verification:_phone:" + phone);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user