diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2015-12-29 09:59:46 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2015-12-29 11:17:06 +0100 |
commit | 23ff8d36199c0cddb5bae4a5010cb71f861eeef8 (patch) | |
tree | 0da3a5941c85f80408e49db63ecd3b3ba5347a40 /src/Wallabag/UserBundle/Resources | |
parent | c997cfcc9c161241a6398b0942a1a869688d807a (diff) | |
download | wallabag-23ff8d36199c0cddb5bae4a5010cb71f861eeef8.tar.gz wallabag-23ff8d36199c0cddb5bae4a5010cb71f861eeef8.tar.zst wallabag-23ff8d36199c0cddb5bae4a5010cb71f861eeef8.zip |
Add custom email for 2FA
Related #1490
Diffstat (limited to 'src/Wallabag/UserBundle/Resources')
3 files changed, 29 insertions, 0 deletions
diff --git a/src/Wallabag/UserBundle/Resources/config/services.yml b/src/Wallabag/UserBundle/Resources/config/services.yml index e69de29b..9109b6a3 100644 --- a/src/Wallabag/UserBundle/Resources/config/services.yml +++ b/src/Wallabag/UserBundle/Resources/config/services.yml | |||
@@ -0,0 +1,9 @@ | |||
1 | services: | ||
2 | wallabag_user.auth_code_mailer: | ||
3 | class: Wallabag\UserBundle\Mailer\AuthCodeMailer | ||
4 | arguments: | ||
5 | - "@mailer" | ||
6 | - "@translator" | ||
7 | - "%scheb_two_factor.email.sender_email%" | ||
8 | - "%scheb_two_factor.email.sender_name%" | ||
9 | - "%wallabag_support_url%" | ||
diff --git a/src/Wallabag/UserBundle/Resources/translations/wallabag_user.en.yml b/src/Wallabag/UserBundle/Resources/translations/wallabag_user.en.yml new file mode 100644 index 00000000..f806d1d6 --- /dev/null +++ b/src/Wallabag/UserBundle/Resources/translations/wallabag_user.en.yml | |||
@@ -0,0 +1,10 @@ | |||
1 | # Two factor mail | ||
2 | auth_code.mailer.subject: 'Wallabag authentication Code' | ||
3 | auth_code.mailer.body: | | ||
4 | Hi %user%, | ||
5 | |||
6 | Since you enable two factor authentication on your wallabag account and you just logged in from a new device (computer, phone, etc.), we send you a code to validate your connection. | ||
7 | Here is the code: %code% | ||
8 | |||
9 | Please don't hesitate to contact us if you have any problems: %support% | ||
10 | The wallabag team | ||
diff --git a/src/Wallabag/UserBundle/Resources/translations/wallabag_user.fr.yml b/src/Wallabag/UserBundle/Resources/translations/wallabag_user.fr.yml new file mode 100644 index 00000000..386b2d9e --- /dev/null +++ b/src/Wallabag/UserBundle/Resources/translations/wallabag_user.fr.yml | |||
@@ -0,0 +1,10 @@ | |||
1 | # Two factor mail | ||
2 | auth_code.mailer.subject: "Code d'authentification wallabag" | ||
3 | auth_code.mailer.body: | | ||
4 | Bonjour %user%, | ||
5 | |||
6 | Comme vous avez activé la double authentification sur votre compte wallabag et que vous venez de vous connecter depuis un nouvel appareil (ordinateur, téléphone, etc.), nous vous envoyons un code pour valider votre connexion. | ||
7 | Voici le code à renseigner: %code% | ||
8 | |||
9 | Si vous avez un problème de connexion, n'hésitez pas à contacter le support: %support% | ||
10 | L'équipe wallabag | ||