|
|
@@ -794,11 +794,10 @@ class VfsPlugin(IVSPlg):
|
|
|
resp = self._perform_request("GET", url, headers=headers)
|
|
|
return resp.json()
|
|
|
|
|
|
- def _read_otp_email(self) -> str:
|
|
|
+ def _read_otp_email(self, sender='donotreply at vfshelpline.com') -> str:
|
|
|
# 保持原样,这部分使用云API读取邮件,不依赖本地网络库
|
|
|
master_email = "visafly666@gmail.com"
|
|
|
recipient = self.config.account.username
|
|
|
- sender = "donotreply at vfshelpline.com"
|
|
|
subject_keywords = "One Time Password"
|
|
|
body_keywords = "OTP"
|
|
|
now_utc = datetime.utcnow()
|
|
|
@@ -989,7 +988,7 @@ class VfsPlugin(IVSPlg):
|
|
|
raise BizLogicError(message='Applicant OTP send failed')
|
|
|
|
|
|
# 复用之前的读邮件逻辑
|
|
|
- otp_code = self._read_otp_email()
|
|
|
+ otp_code = self._read_otp_email(sender='donotreply at vfsglobal.com')
|
|
|
if not self._applicant_otp_verify(apt_config, final_urn, otp_code):
|
|
|
raise BizLogicError(message='Applicant OTP verify failed')
|
|
|
|