mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-25 17:22:55 +00:00
fix: 1052009
--bug=1052009 --user=王孝刚 [国际化]修改密码的验证码通知邮件未国际化 https://www.tapd.cn/57709429/s/1651094
This commit is contained in:
parent
1db5696bc1
commit
5453aa7380
|
|
@ -54,10 +54,10 @@
|
|||
>
|
||||
<div
|
||||
style="
|
||||
width: 230px;
|
||||
width: 500px;
|
||||
background: linear-gradient(180deg, #3370FF 0%, #7f3bf5 100%);
|
||||
-webkit-background-clip: text;
|
||||
font-size: 24px;
|
||||
font-size: 16px;
|
||||
-webkit-text-fill-color: transparent;
|
||||
font-style: normal;
|
||||
font-weight: 900;
|
||||
|
|
|
|||
|
|
@ -395,7 +395,7 @@ class SendEmailSerializer(ApiMixin, serializers.Serializer):
|
|||
# 获取邮件模板
|
||||
language = get_language()
|
||||
file = open(
|
||||
os.path.join(PROJECT_DIR, "apps", "common", 'template', f'email_template{to_locale(language)}.html'), "r",
|
||||
os.path.join(PROJECT_DIR, "apps", "common", 'template', f'email_template_{to_locale(language)}.html'), "r",
|
||||
encoding='utf-8')
|
||||
content = file.read()
|
||||
file.close()
|
||||
|
|
|
|||
Loading…
Reference in New Issue