🐛 Fix mail factor code use wrong title and template
This commit is contained in:
@@ -450,7 +450,7 @@ public class AccountService(
|
||||
.SendTemplatedEmailAsync<Emails.VerificationEmail, VerificationEmailModel>(
|
||||
account.Nick,
|
||||
contact.Content,
|
||||
emailLocalizer["VerificationEmail"],
|
||||
emailLocalizer["EmailCodeTitle"],
|
||||
new VerificationEmailModel
|
||||
{
|
||||
Name = account.Name,
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<EmailLayout>
|
||||
<tr>
|
||||
<td class="wrapper">
|
||||
<p class="font-bold">@(Localizer["VerificationHeader1"])</p>
|
||||
<p class="font-bold">@(Localizer["CodeHeader1"])</p>
|
||||
<p>@(Localizer["VerificationPara1"]) @@@Name,</p>
|
||||
<p>@(Localizer["VerificationPara2"])</p>
|
||||
<p>@(Localizer["VerificationPara3"])</p>
|
||||
|
||||
@@ -81,24 +81,6 @@
|
||||
<data name="PasswordResetPara4" xml:space="preserve">
|
||||
<value>If you didn't request this, you can ignore this email safety.</value>
|
||||
</data>
|
||||
<data name="VerificationHeader1" xml:space="preserve">
|
||||
<value>Verify Your Email Address</value>
|
||||
</data>
|
||||
<data name="VerificationPara1" xml:space="preserve">
|
||||
<value>Dear, </value>
|
||||
</data>
|
||||
<data name="VerificationPara2" xml:space="preserve">
|
||||
<value>Thank you for creating an account on the Solar Network. We're excited to have you join our community!</value>
|
||||
</data>
|
||||
<data name="VerificationPara3" xml:space="preserve">
|
||||
<value>To verify your email address and access all features of your account, please use the verification code below:</value>
|
||||
</data>
|
||||
<data name="VerificationPara4" xml:space="preserve">
|
||||
<value>This code will expire in 30 minutes. Please enter it on the verification page to complete your registration.</value>
|
||||
</data>
|
||||
<data name="VerificationPara5" xml:space="preserve">
|
||||
<value>If you didn't create this account, please ignore this email.</value>
|
||||
</data>
|
||||
<data name="EmailVerificationTitle" xml:space="preserve">
|
||||
<value>Verify your email address</value>
|
||||
</data>
|
||||
@@ -123,4 +105,25 @@
|
||||
<data name="EmailContactVerificationTitle" xml:space="preserve">
|
||||
<value>Verify your contact information</value>
|
||||
</data>
|
||||
<data name="EmailCodeTitle" xml:space="preserve">
|
||||
<value>Your email one-time-password</value>
|
||||
</data>
|
||||
<data name="CodeHeader1" xml:space="preserve">
|
||||
<value>Email One-time-password</value>
|
||||
</data>
|
||||
<data name="CodePara1" xml:space="preserve">
|
||||
<value>Dear, </value>
|
||||
</data>
|
||||
<data name="CodePara2" xml:space="preserve">
|
||||
<value>Someone trying to use email auth factor to authorize an access request</value>
|
||||
</data>
|
||||
<data name="CodePara3" xml:space="preserve">
|
||||
<value>If that is you, enter the code below to continue</value>
|
||||
</data>
|
||||
<data name="CodePara4" xml:space="preserve">
|
||||
<value>This code will expire in 30 minutes.</value>
|
||||
</data>
|
||||
<data name="CodePara5" xml:space="preserve">
|
||||
<value>If you didn't request this, you can ignore this email safely</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -74,24 +74,6 @@
|
||||
<data name="EmailPasswordResetTitle" xml:space="preserve">
|
||||
<value>重置您的密码</value>
|
||||
</data>
|
||||
<data name="VerificationHeader1" xml:space="preserve">
|
||||
<value>验证您的电子邮箱</value>
|
||||
</data>
|
||||
<data name="VerificationPara1" xml:space="preserve">
|
||||
<value>尊敬的 </value>
|
||||
</data>
|
||||
<data name="VerificationPara2" xml:space="preserve">
|
||||
<value>感谢您在 Solar Network 上注册账号,我们很高兴您即将加入我们的社区!</value>
|
||||
</data>
|
||||
<data name="VerificationPara3" xml:space="preserve">
|
||||
<value>请使用以下验证码来验证您的电子邮箱并获取账号的所有功能:</value>
|
||||
</data>
|
||||
<data name="VerificationPara4" xml:space="preserve">
|
||||
<value>此验证码将在30分钟后失效。请在验证页面输入此验证码以完成注册。</value>
|
||||
</data>
|
||||
<data name="VerificationPara5" xml:space="preserve">
|
||||
<value>如果您并未创建此账号,请忽略此邮件。</value>
|
||||
</data>
|
||||
<data name="EmailVerificationTitle" xml:space="preserve">
|
||||
<value>验证您的电子邮箱</value>
|
||||
</data>
|
||||
@@ -116,4 +98,25 @@
|
||||
<data name="EmailContactVerificationTitle" xml:space="preserve">
|
||||
<value>验证您的联系信息</value>
|
||||
</data>
|
||||
<data name="EmailCodeTitle" xml:space="preserve">
|
||||
<value>您的一次性邮件验证码</value>
|
||||
</data>
|
||||
<data name="CodeHeader1" xml:space="preserve">
|
||||
<value>邮件一次性验证码</value>
|
||||
</data>
|
||||
<data name="CodePara1" xml:space="preserve">
|
||||
<value>尊敬的</value>
|
||||
</data>
|
||||
<data name="CodePara2" xml:space="preserve">
|
||||
<value>有人正在尝试使用邮件验证码作为验证因子授权访问</value>
|
||||
</data>
|
||||
<data name="CodePara3" xml:space="preserve">
|
||||
<value>如果那位用户就是您,输入下方的验证码来继续访问</value>
|
||||
</data>
|
||||
<data name="CodePara4" xml:space="preserve">
|
||||
<value>验证码会在 30 分钟后过期</value>
|
||||
</data>
|
||||
<data name="CodePara5" xml:space="preserve">
|
||||
<value>如果您未申请过本验证码,您可以安全的忽略这封邮件</value>
|
||||
</data>
|
||||
</root>
|
||||
Reference in New Issue
Block a user