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,
|
"FirstName": user.FirstName,
|
||||||
"Email": user.Email,
|
"Email": user.Email,
|
||||||
"VerificationCode": token,
|
"VerificationCode": token,
|
||||||
"ExpireTime": verification.ExpiresAt,
|
"ExpireTime": verification.ExpiresAt.Sub(time.Now()).Round(time.Second * 2),
|
||||||
"PortalName": s.config.Config().Core.PortalName,
|
"PortalName": s.config.Config().Core.PortalName,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue