summaryrefslogtreecommitdiff
path: root/internal/middlewares/identity_verification.go
diff options
context:
space:
mode:
authorBrynn Crowley <littlehill723@gmail.com>2024-09-22 01:48:55 -0700
committerGitHub <noreply@github.com>2024-09-22 18:48:55 +1000
commitef303022423feca3a570efd17747fe39bd97c1e9 (patch)
treec0a830ed2c488bc5df048170684027d1719d98a5 /internal/middlewares/identity_verification.go
parentc9b40a0c60ee3f5889dfa5fd03db6f769c9e2761 (diff)
fix(templates): grammar and enhancements to emails (#7903)
* fix: grammar and minor changes to email templates * fix(handlers): fix failing session-elevation test
Diffstat (limited to 'internal/middlewares/identity_verification.go')
-rw-r--r--internal/middlewares/identity_verification.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/middlewares/identity_verification.go b/internal/middlewares/identity_verification.go
index 066aac3f4..faabe8369 100644
--- a/internal/middlewares/identity_verification.go
+++ b/internal/middlewares/identity_verification.go
@@ -93,6 +93,8 @@ func IdentityVerificationStart(args IdentityVerificationStartArgs, delayFunc Tim
revocationLinkURL.Path = path.Join(revocationLinkURL.Path, args.RevokeEndpoint)
revocationLinkURL.RawQuery = query.Encode()
+ domain, _ := ctx.GetCookieDomain()
+
data := templates.EmailIdentityVerificationJWTValues{
Title: args.MailTitle,
LinkURL: linkURL.String(),
@@ -100,6 +102,7 @@ func IdentityVerificationStart(args IdentityVerificationStartArgs, delayFunc Tim
RevocationLinkURL: revocationLinkURL.String(),
RevocationLinkText: args.MailButtonRevokeContent,
DisplayName: identity.DisplayName,
+ Domain: domain,
RemoteIP: ctx.RemoteIP().String(),
}