From 4c2baf164fd7b2571582963fbc78b389b8201b6a Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 26 Mar 2024 16:49:53 -0400 Subject: [PATCH] fix: bad verify url, remove email query var --- account/account.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account/account.go b/account/account.go index e83db91..2bbed05 100644 --- a/account/account.go +++ b/account/account.go @@ -147,7 +147,7 @@ func (s AccountServiceDefault) SendEmailVerification(userId uint) error { return NewAccountError(ErrKeyDatabaseOperationFailed, err) } - verifyUrl := fmt.Sprintf("%s://%s/account/verify?email=%s&token=%s", fmt.Sprintf("https://%s.%s", ACCOUNT_SUBDOMAIN, s.config.Config().Core.Domain), user.Email, token) + verifyUrl := fmt.Sprintf("%s/account/verify?token=%s", fmt.Sprintf("https://%s.%s", ACCOUNT_SUBDOMAIN, s.config.Config().Core.Domain), token) vars := map[string]interface{}{ "FirstName": user.FirstName,