fix 企业端短信登录接口
This commit is contained in:
+4
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user