integrate email template #366
This commit is contained in:
@@ -521,12 +521,21 @@ func (s *ServerCommand) makeCache() (cache.LoadingCache, error) {
|
||||
}
|
||||
|
||||
var msgTemplate = `
|
||||
<html>
|
||||
<body>
|
||||
Remark42 confirmation for {{.User}} {{.Address}}, site {{.Site}}
|
||||
<p>Token: {{.Token}}</p>
|
||||
</body>
|
||||
</html>
|
||||
<!doctype html>
|
||||
<html>
|
||||
<body>
|
||||
<div style="text-align: center; font-family: Arial, sans-serif; font-size: 18px;">
|
||||
<h1 style="color: #4fbbd6; margin-top: 0.2em;">Remark42</h1>
|
||||
<p style="max-width: 20em; margin: 0 auto 1em auto; line-height: 1.4em;">Confirmation for <b>{{.User}}</b> on site <b>{{.Site}}</b></p>
|
||||
<div style="background-color: #eee; max-width: 20em; margin: 0 auto; border-radius: 0.4em; padding: 0.5em;">
|
||||
<p style="margin: 0 0 0.5em 0;">TOKEN</p>
|
||||
<p style="font-size: 0.7em; opacity: 0.8;"><i>Copy and paste this text into “token” field on comments page</i></p>
|
||||
<p style="font-family: monospace; background-color: #fff; margin: 0; padding: 0.5em; word-break: break-all; text-align: left; border-radius: 0.2em;">{{.Token}}</p>
|
||||
</div>
|
||||
<p style="margin-top: 2em; font-size: 0.8em; opacity: 0.8;"><i>Sent to {{.Address}}</i></p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
`
|
||||
|
||||
func (s *ServerCommand) addAuthProviders(authenticator *auth.Service) {
|
||||
|
||||
Reference in New Issue
Block a user