Skip to content

Commit 66c5242

Browse files
committed
fix: 1052009
--bug=1052009 --user=王孝刚 [国际化]修改密码的验证码通知邮件未国际化 https://www.tapd.cn/57709429/s/1651094
1 parent 9f5f20b commit 66c5242

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

apps/common/template/email_template_en.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@
5454
>
5555
<div
5656
style="
57-
width: 230px;
57+
width: 500px;
5858
background: linear-gradient(180deg, #3370FF 0%, #7f3bf5 100%);
5959
-webkit-background-clip: text;
60-
font-size: 24px;
60+
font-size: 16px;
6161
-webkit-text-fill-color: transparent;
6262
font-style: normal;
6363
font-weight: 900;

apps/users/serializers/user_serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ def send(self):
395395
# 获取邮件模板
396396
language = get_language()
397397
file = open(
398-
os.path.join(PROJECT_DIR, "apps", "common", 'template', f'email_template{to_locale(language)}.html'), "r",
398+
os.path.join(PROJECT_DIR, "apps", "common", 'template', f'email_template_{to_locale(language)}.html'), "r",
399399
encoding='utf-8')
400400
content = file.read()
401401
file.close()

0 commit comments

Comments
 (0)