fix 企业端短信登录接口

This commit is contained in:
lijiarao
2021-09-24 16:53:24 +08:00
parent 20ede8ef89
commit 368ac7370b
@@ -65,7 +65,6 @@ public class PayContactsManagementServiceImpl extends ServiceImpl<PayContactsMan
@Override
public void verificationChangePassword(CompanyLoginVO companyLoginVO) {
ValidUtil.validate(companyLoginVO);
//前端传入密码解密
String phone = companyLoginVO.getPhone();
@@ -74,8 +73,12 @@ public class PayContactsManagementServiceImpl extends ServiceImpl<PayContactsMan
String RSAPublicKey = companyLoginVO.getRsaPublicKey();
String RSAPrivateKey = String.valueOf(redisUtil.get(RSAPublicKey));
try {
phone = CommonUtils.decryptBtRsaPriKey(phone, RSAPrivateKey);
password = CommonUtils.decryptBtRsaPriKey(password, RSAPrivateKey);
verifyPassword = CommonUtils.decryptBtRsaPriKey(verifyPassword, RSAPrivateKey);
companyLoginVO.setPhone(phone);
ValidUtil.validate(companyLoginVO);
companyLoginVO.setPassword(password);
companyLoginVO.setVerifyPassword(verifyPassword);
} catch (Exception e) {