From 414137cd73981fd80030adc82c101b9ca31dea71 Mon Sep 17 00:00:00 2001 From: xinwen Date: Wed, 12 Jan 2022 16:33:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=89=E6=96=B9=E8=AE=A4=E8=AF=81?= =?UTF-8?q?=E7=BB=91=E5=AE=9A=E5=8F=91=E9=80=9A=E7=9F=A5=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/authentication/notifications.py | 2 +- apps/authentication/views/dingtalk.py | 2 +- apps/authentication/views/feishu.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/authentication/notifications.py b/apps/authentication/notifications.py index 52ebb604e..364ac20dd 100644 --- a/apps/authentication/notifications.py +++ b/apps/authentication/notifications.py @@ -49,7 +49,7 @@ class OAuthBindMessage(UserMessage): def get_html_msg(self) -> dict: now = local_now_display() - subject = self.oauth_name + _('binding reminder') + subject = self.oauth_name + ' ' + _('binding reminder') context = dict( subject=subject, name=self.user.name, diff --git a/apps/authentication/views/dingtalk.py b/apps/authentication/views/dingtalk.py index b9b6f6814..e42e7ff81 100644 --- a/apps/authentication/views/dingtalk.py +++ b/apps/authentication/views/dingtalk.py @@ -157,7 +157,7 @@ class DingTalkQRBindCallbackView(DingTalkQRMixin, View): raise e 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') response = self.get_success_response(redirect_url, msg, msg) return response diff --git a/apps/authentication/views/feishu.py b/apps/authentication/views/feishu.py index 109f01288..88ba6636e 100644 --- a/apps/authentication/views/feishu.py +++ b/apps/authentication/views/feishu.py @@ -145,7 +145,7 @@ class FeiShuQRBindCallbackView(FeiShuQRMixin, View): raise e 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') response = self.get_success_response(redirect_url, msg, msg) return response