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