|
|
|
@ -32,6 +32,7 @@ def send_reset_password_mail_task(language: str, to: str, code: str):
|
|
|
|
application_title = FeatureService.get_enterprise_application_title()
|
|
|
|
application_title = FeatureService.get_enterprise_application_title()
|
|
|
|
template = "without-brand/reset_password_mail_template_zh-CN.html"
|
|
|
|
template = "without-brand/reset_password_mail_template_zh-CN.html"
|
|
|
|
html_content = render_template(template, to=to, code=code, application_title=application_title)
|
|
|
|
html_content = render_template(template, to=to, code=code, application_title=application_title)
|
|
|
|
|
|
|
|
mail.send(to=to, subject=f"设置您的 {application_title} 密码", html=html_content)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
html_content = render_template(template, to=to, code=code)
|
|
|
|
html_content = render_template(template, to=to, code=code)
|
|
|
|
mail.send(to=to, subject="设置您的 Dify 密码", html=html_content)
|
|
|
|
mail.send(to=to, subject="设置您的 Dify 密码", html=html_content)
|
|
|
|
@ -41,6 +42,7 @@ def send_reset_password_mail_task(language: str, to: str, code: str):
|
|
|
|
application_title = FeatureService.get_enterprise_application_title()
|
|
|
|
application_title = FeatureService.get_enterprise_application_title()
|
|
|
|
template = "without-brand/reset_password_mail_template_en-US.html"
|
|
|
|
template = "without-brand/reset_password_mail_template_en-US.html"
|
|
|
|
html_content = render_template(template, to=to, code=code, application_title=application_title)
|
|
|
|
html_content = render_template(template, to=to, code=code, application_title=application_title)
|
|
|
|
|
|
|
|
mail.send(to=to, subject=f"Set Your {application_title} Password", html=html_content)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
html_content = render_template(template, to=to, code=code)
|
|
|
|
html_content = render_template(template, to=to, code=code)
|
|
|
|
mail.send(to=to, subject="Set Your Dify Password", html=html_content)
|
|
|
|
mail.send(to=to, subject="Set Your Dify Password", html=html_content)
|
|
|
|
|