fix: update how ExpireTime is computed

This commit is contained in:
Derrick Hammer 2024-03-15 07:27:24 -04:00
parent 7c6fec61b6
commit ba0d32bb63
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ func (s *AccountServiceDefault) SendEmailVerification(user *models.User) error {
"FirstName": user.FirstName,
"Email": user.Email,
"VerificationCode": token,
"ExpireTime": verification.ExpiresAt,
"ExpireTime": verification.ExpiresAt.Sub(time.Now()).Round(time.Second * 2),
"PortalName": s.config.Config().Core.PortalName,
}