Skip to content

Commit 41d6eb2

Browse files
committed
reset_password
1 parent de00672 commit 41d6eb2

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

options/locale/locale_en-US.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,9 @@ register_notify.title = %[1]s, welcome to %[2]s
330330
register_notify.body = <p>Hi <b>%[1]s</b>, this is your registration confirmation email for %[4]s!</p><br><br><p>You can now login via username: %[2]s.</p><br><p><a href="%[3]suser/login">%[3]suser/login</a></p><br><p>If this account has been created for you, please <a href="%[3]suser/forgot_password">set your password</a> first.</p><br><p>© <a target="_blank" rel="noopener noreferrer" href="%[3]s">%[4]s</a></p>
331331
332332
reset_password = Recover your account
333+
reset_password.title = %s, you have requested to recover your account
334+
reset_password.body = <p>Hi <b>%[1]s</b>,</p><br><p>Please click the following link to recover your account within <b>%[2]s</b>:</p><br><br><p><a href="%[3]s">%[3]s</a></p><br><p>Not working? Try copying and pasting it to your browser.</p><br><p>© <a target="_blank" rel="noopener noreferrer" href="%[4]s">%[5]s</a></p>
335+
333336
register_success = Registration successful
334337
335338
release.new.subject = %s in %s released

templates/mail/auth/reset_passwd.tmpl

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,11 @@
22
<html>
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5-
<title>{{.DisplayName}}, you have requested to recover your account</title>
5+
<title>{{.i18n.Tr "mail.reset_password.title" .DisplayName}}</title>
66
</head>
77

8+
{{ $recover_url := printf "%suser/recover_account?code=%s" AppUrl .Code}}
89
<body>
9-
<p>Hi <b>{{.DisplayName}}</b>,</p>
10-
<p>Please click the following link to recover your account within <b>{{.ResetPwdCodeLives}}</b>:</p>
11-
12-
<p><a href="{{AppUrl}}user/recover_account?code={{.Code}}">{{AppUrl}}user/recover_account?code={{.Code}}</a></p>
13-
<p>Not working? Try copying and pasting it to your browser.</p>
14-
<p>© <a target="_blank" rel="noopener noreferrer" href="{{AppUrl}}">{{AppName}}</a></p>
10+
{{.i18n.Tr "mail.reset_password.body" .DisplayName .ResetPwdCodeLives $recover_url AppUrl AppName | Str2html}}
1511
</body>
1612
</html>

0 commit comments

Comments
 (0)