mirror of https://github.com/jumpserver/jumpserver
fix: 三方认证绑定发通知文案
parent
1e3a15a3d0
commit
414137cd73
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue