From c8c0414564178fe995f182914af90f62b81d9ff9 Mon Sep 17 00:00:00 2001 From: roschaefer Date: Thu, 10 Oct 2019 13:48:52 +0200 Subject: [PATCH] fix: send nonce along with signup mail --- backend/src/middleware/email/templateBuilder.js | 2 +- backend/src/middleware/email/templates/signup.html | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/backend/src/middleware/email/templateBuilder.js b/backend/src/middleware/email/templateBuilder.js index 4b7bcc7cd..b4b7b78ca 100644 --- a/backend/src/middleware/email/templateBuilder.js +++ b/backend/src/middleware/email/templateBuilder.js @@ -18,7 +18,7 @@ export const signupTemplate = ({ email, nonce }) => { subject, html: mustache.render( templates.layout, - { actionUrl, supportUrl, subject }, + { actionUrl, nonce, supportUrl, subject }, { content: templates.signup }, ), } diff --git a/backend/src/middleware/email/templates/signup.html b/backend/src/middleware/email/templates/signup.html index 79894b584..ad60d9323 100644 --- a/backend/src/middleware/email/templates/signup.html +++ b/backend/src/middleware/email/templates/signup.html @@ -60,7 +60,9 @@
-

Falls Du Dich nicht selbst bei Sollte der Button für Dich nicht funktionieren, kannst Du auch folgenden Code in Dein Browserfenster kopieren: {{{ nonce }}}

+

Das funktioniert allerdings nur, wenn du Dich über unsere Website registriert hast.

+

Falls Du Dich nicht selbst bei Human Connection angemeldet hast, schau doch mal vorbei! Wir sind ein gemeinnütziges Aktionsnetzwerk – von Menschen für Menschen.

PS: Wenn Du keinen Account bei uns möchtest, kannst Du diese @@ -169,7 +171,9 @@
-

If you didn't sign up for If the above button doesn't work, you can also copy the following code into your browser window: {{{ nonce }}}

+

However, this only works if you have registered through our website.

+

If you didn't sign up for Human Connection we recommend you to check it out! It's a social network from people for people who want to connect and change the world together.

PS: If you ignore this e-mail we will not create an account