From a4b6b3cb1e79debc21ddcadf39f7985f75e12d83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Bouzour=C3=A8ne?= Date: Wed, 6 May 2026 08:02:34 +0200 Subject: [PATCH] Update email templates --- helpers/authelia/mail.go | 2 +- mails/welcome.html | 80 ++++++++++++++++++++++++++++++++-------- mails/welcome.txt | 22 ++++++++--- 3 files changed, 83 insertions(+), 21 deletions(-) diff --git a/helpers/authelia/mail.go b/helpers/authelia/mail.go index a1d33e7..5f6e68b 100644 --- a/helpers/authelia/mail.go +++ b/helpers/authelia/mail.go @@ -49,7 +49,7 @@ func SendWelcomeMail(person models.Person) error { return err } - msg.Subject("Ton compte POP Vaud") + msg.Subject("Ton compte POP Vaud a été créé") msg.AddTo(person.Email) err = msg.SetBodyHTMLTemplate(tplHTML, inputValues) diff --git a/mails/welcome.html b/mails/welcome.html index e977516..c9ffcca 100644 --- a/mails/welcome.html +++ b/mails/welcome.html @@ -1,19 +1,69 @@ - - + + - - + + + Ton compte POP Vaud a été créé - -

Ton compte POP Vaud

-
- Camarade,
-
- Ton compte POP Vaud a été créé.
- Tu peux désormais réinitialiser ton mot de passe pour t'y connecter.
-
- Nom d'utilisateur: {{ .Person.Email }}
- Mot de passe: {{ .ResetURL }} -
+ + + + + +
+ + + + + + + + + + + + + + + +
+

POP Vaud

+
+

Cher·e camarade,

+ +

+ Ton compte POP Vaud a été créé avec succès. Tu peux désormais accéder aux applications du parti. +

+ +

Informations de connexion :

+

+ Nom d'utilisateur : {{.Person.Email}} +

+ +

+ Pour commencer, réinitialise ton mot de passe en utilisant le lien suivant : +

+ +

+ Réinitialiser mon mot de passe +

+ +

Applications disponibles :

+ + +

+ En cas de problème, contacte informatique@popvaud.ch. +

+ +

+ Vive la révolution ! +

+
+ Les Camarades du POP Vaud +
+
\ No newline at end of file diff --git a/mails/welcome.txt b/mails/welcome.txt index 0c75bff..8ed74cb 100644 --- a/mails/welcome.txt +++ b/mails/welcome.txt @@ -1,7 +1,19 @@ -Camarade, +Cher·e camarade, -Ton compte POP Vaud a été créé. -Tu peux désormais réinitialiser ton mot de passe pour t'y connecter. +Ton compte POP Vaud a été créé avec succès. Tu peux désormais accéder aux applications du parti. -Nom d'utilisateur: {{ .Person.Email }} -Mot de passe: {{ .ResetURL }} +Informations de connexion : +- Nom d'utilisateur : {{.Person.Email}} + +Pour commencer, réinitialise ton mot de passe en utilisant le lien suivant : +{{.ResetURL}} + +Applications disponibles : +- Wiki POP Vaud : https://wiki.popvaud.ch +- Nuage POP Vaud : https://nuage.popvaud.ch + +En cas de problème, contacte informatique@popvaud.ch. + +Vive la révolution ! + +Les camarades du POP Vaud \ No newline at end of file