fix: bad verify url, remove email query var

This commit is contained in:
Derrick Hammer 2024-03-26 16:49:53 -04:00
parent d40a954b67
commit 4c2baf164f
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -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,