From 8ef5225b20b85968e7176bc38452485f575499c2 Mon Sep 17 00:00:00 2001 From: Michael Quigley Date: Tue, 17 Jan 2023 11:23:26 -0500 Subject: [PATCH] updated verifiation email styling (#157) --- controller/emailUi/verify.gohtml | 567 ++++++++++++++++++++++++++++++- controller/verifyEmail.go | 3 + 2 files changed, 562 insertions(+), 8 deletions(-) diff --git a/controller/emailUi/verify.gohtml b/controller/emailUi/verify.gohtml index 2e389d2e..a31de783 100644 --- a/controller/emailUi/verify.gohtml +++ b/controller/emailUi/verify.gohtml @@ -1,11 +1,562 @@ - - - Welcome to zrok! - - -

Welcome to zrok, {{ .EmailAddress }}!

-

Please click this link to create your zrok account.

- + + + + + Welcome to zrok! + + + + + + + + + + + +
+ +
+

Please click the button below to create your zrok account:

+ Create Account + Documentation +
+ + + + + + + + + + +
Githubgithub.com/openziti/zrok
Version{{ .Version }}
+

Copyright © 2023 NetFoundry, Inc.

+
+ + \ No newline at end of file diff --git a/controller/verifyEmail.go b/controller/verifyEmail.go index ffa19c11..acaebe80 100644 --- a/controller/verifyEmail.go +++ b/controller/verifyEmail.go @@ -2,6 +2,7 @@ package controller import ( "bytes" + "github.com/openziti/zrok/build" "github.com/openziti/zrok/controller/emailUi" "github.com/pkg/errors" "github.com/sirupsen/logrus" @@ -12,12 +13,14 @@ import ( type verificationEmail struct { EmailAddress string VerifyUrl string + Version string } func sendVerificationEmail(emailAddress, token string) error { emailData := &verificationEmail{ EmailAddress: emailAddress, VerifyUrl: cfg.Registration.RegistrationUrlTemplate + "/" + token, + Version: build.String(), } plainBody, err := mergeTemplate(emailData, "verify.gotext")