Personnalisation du template mail/auth/activate.tmpl

This commit is contained in:
root 2023-11-26 02:16:00 +01:00 committed by Pierre-Louis Bonicoli
parent 0ed088e2c2
commit efb3d0da43
Signed by: pilou
GPG Key ID: 06914C4A5EDAA6DD
1 changed files with 5 additions and 4 deletions

View File

@ -3,14 +3,15 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="format-detection" content="telephone=no,date=no,address=no,email=no,url=no">
<title>{{.locale.Tr "mail.activate_account.title" (.DisplayName|DotEscape)}}</title>
<title>{{.DisplayName|DotEscape}}, veuillez activer votre compte</title>
</head>
{{$activate_url := printf "%suser/activate?code=%s" AppUrl (QueryEscape .Code)}}
<body>
<p>{{.locale.Tr "mail.activate_account.text_1" (.DisplayName|DotEscape) AppName | Str2html}}</p><br>
<p>{{.locale.Tr "mail.activate_account.text_2" .ActiveCodeLives | Str2html}}</p><p><a href="{{$activate_url}}">{{$activate_url}}</a></p><br>
<p>{{.locale.Tr "mail.link_not_working_do_paste"}}</p>
<p>Bonjour <b>{{.DisplayName|DotEscape}}</b>, merci pour votre inscription à {{AppName}} !</p>
<p>Veuillez cliquer sur le lien suivant pour activer votre compte avant <b>{{.ActiveCodeLives}}</b> :</p>
<p><a href="{{$activate_url}}">{{$activate_url}}</a></p>
<p>Un problème ? Essayez en copiant/collant le lien dans votre navigateur web.</p>
<p>© <a target="_blank" rel="noopener noreferrer" href="{{AppUrl}}">{{AppName}}</a></p>
</body>