Merge branch 'e-0154' into deploy/enterprise

This commit is contained in:
GareArc 2025-03-18 01:55:38 -04:00
commit d887aae012

View File

@ -30,7 +30,7 @@ def send_email_code_login_mail_task(language: str, to: str, code: str):
template = "email_code_login_mail_template_zh-CN.html"
if dify_config.ENTERPRISE_ENABLED:
application_title = FeatureService.get_enterprise_application_title()
template = "without-brand/email_code_login_mail_template_zh-CN_enterprise.html"
template = "without-brand/email_code_login_mail_template_zh-CN.html"
html_content = render_template(template, to=to, code=code, application_title=application_title)
else:
html_content = render_template(template, to=to, code=code)
@ -39,7 +39,7 @@ def send_email_code_login_mail_task(language: str, to: str, code: str):
template = "email_code_login_mail_template_en-US.html"
if dify_config.ENTERPRISE_ENABLED:
application_title = FeatureService.get_enterprise_application_title()
template = "without-brand/email_code_login_mail_template_en-US_enterprise.html"
template = "without-brand/email_code_login_mail_template_en-US.html"
html_content = render_template(template, to=to, code=code, application_title=application_title)
else:
html_content = render_template(template, to=to, code=code)