Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
reset_password
  • Loading branch information
6543 committed Jun 19, 2021
commit 41d6eb2dfb303a807991762e3b43c24f191e2479
3 changes: 3 additions & 0 deletions options/locale/locale_en-US.ini
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@ register_notify.title = %[1]s, welcome to %[2]s
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>

reset_password = Recover your account
reset_password.title = %s, you have requested to recover your account
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>

register_success = Registration successful

release.new.subject = %s in %s released
Expand Down
10 changes: 3 additions & 7 deletions templates/mail/auth/reset_passwd.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{{.DisplayName}}, you have requested to recover your account</title>
<title>{{.i18n.Tr "mail.reset_password.title" .DisplayName}}</title>
</head>

{{ $recover_url := printf "%suser/recover_account?code=%s" AppUrl .Code}}
<body>
<p>Hi <b>{{.DisplayName}}</b>,</p>
<p>Please click the following link to recover your account within <b>{{.ResetPwdCodeLives}}</b>:</p>

<p><a href="{{AppUrl}}user/recover_account?code={{.Code}}">{{AppUrl}}user/recover_account?code={{.Code}}</a></p>
<p>Not working? Try copying and pasting it to your browser.</p>
<p>© <a target="_blank" rel="noopener noreferrer" href="{{AppUrl}}">{{AppName}}</a></p>
{{.i18n.Tr "mail.reset_password.body" .DisplayName .ResetPwdCodeLives $recover_url AppUrl AppName | Str2html}}
</body>
</html>