|
@@ -3364,10 +3364,12 @@ class SingleLoginView(TemplateView):
|
|
|
def get_verification_code(self, request_dict, response):
|
|
|
email = request_dict.get('email', None)
|
|
|
phone = request_dict.get('phone', None)
|
|
|
- sign_name = request_dict.get('sign_name', None)
|
|
|
+ sign_name = request_dict.get('sign_name', 'zosi')
|
|
|
country_code = request_dict.get('country_code', None)
|
|
|
# code_type = 1 表示修改绑定手机号
|
|
|
code_type = request_dict.get('code_type', None)
|
|
|
+ # 短信签名
|
|
|
+ sign_name = CommonService.confirm_msg_sign_name(sign_name)
|
|
|
if email is not None:
|
|
|
email = email.strip()
|
|
|
# 阿里云的发送邮箱的调用方法
|
|
@@ -3375,8 +3377,6 @@ class SingleLoginView(TemplateView):
|
|
|
elif phone is not None and code_type == "1":
|
|
|
phone = phone.strip()
|
|
|
country_code = str(country_code.strip())
|
|
|
- # 短信签名
|
|
|
- sign_name = CommonService.confirm_msg_sign_name(sign_name)
|
|
|
return self.get_change_phone_code(country_code, phone, response, sign_name)
|
|
|
elif phone is not None:
|
|
|
phone = phone.strip()
|