From 820f3129fb45904b25d57b40db3c229faac11869 Mon Sep 17 00:00:00 2001 From: Umputun Date: Sat, 6 Jul 2019 17:19:34 -0500 Subject: [PATCH] integrate email template #366 --- backend/app/cmd/server.go | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/backend/app/cmd/server.go b/backend/app/cmd/server.go index 0cce213a..b736b0a4 100644 --- a/backend/app/cmd/server.go +++ b/backend/app/cmd/server.go @@ -521,12 +521,21 @@ func (s *ServerCommand) makeCache() (cache.LoadingCache, error) { } var msgTemplate = ` - - -Remark42 confirmation for {{.User}} {{.Address}}, site {{.Site}} -

Token: {{.Token}}

- - + + + +
+

Remark42

+

Confirmation for {{.User}} on site {{.Site}}

+
+

TOKEN

+

Copy and paste this text into “token” field on comments page

+

{{.Token}}

+
+

Sent to {{.Address}}

+
+ + ` func (s *ServerCommand) addAuthProviders(authenticator *auth.Service) {