summaryrefslogtreecommitdiff
path: root/internal/middlewares/identity_verification.go
diff options
context:
space:
mode:
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(),
}