fix: 三方认证绑定发通知文案

pull/7487/head
xinwen 3 years ago committed by Jiangjie.Bai
parent 1e3a15a3d0
commit 414137cd73

@ -49,7 +49,7 @@ class OAuthBindMessage(UserMessage):
def get_html_msg(self) -> dict: def get_html_msg(self) -> dict:
now = local_now_display() now = local_now_display()
subject = self.oauth_name + _('binding reminder') subject = self.oauth_name + ' ' + _('binding reminder')
context = dict( context = dict(
subject=subject, subject=subject,
name=self.user.name, name=self.user.name,

@ -157,7 +157,7 @@ class DingTalkQRBindCallbackView(DingTalkQRMixin, View):
raise e raise e
ip = get_request_ip(request) ip = get_request_ip(request)
OAuthBindMessage(user, ip, _('WeCom'), user_id).publish_async() OAuthBindMessage(user, ip, _('DingTalk'), user_id).publish_async()
msg = _('Binding DingTalk successfully') msg = _('Binding DingTalk successfully')
response = self.get_success_response(redirect_url, msg, msg) response = self.get_success_response(redirect_url, msg, msg)
return response return response

@ -145,7 +145,7 @@ class FeiShuQRBindCallbackView(FeiShuQRMixin, View):
raise e raise e
ip = get_request_ip(request) ip = get_request_ip(request)
OAuthBindMessage(user, ip, _('WeCom'), user_id).publish_async() OAuthBindMessage(user, ip, _('FeiShu'), user_id).publish_async()
msg = _('Binding FeiShu successfully') msg = _('Binding FeiShu successfully')
response = self.get_success_response(redirect_url, msg, msg) response = self.get_success_response(redirect_url, msg, msg)
return response return response

Loading…
Cancel
Save