fix: update how ExpireTime is computed
This commit is contained in:
parent
7c6fec61b6
commit
ba0d32bb63
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue