refactor: use ErrKeySecurityInvalidToken

This commit is contained in:
Derrick Hammer 2024-03-26 20:25:32 -04:00
parent adc5bc213e
commit 4ca78df050
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ func (s AccountServiceDefault) VerifyEmail(email string, token string) error {
return NewAccountError(ErrKeyUserNotFound, nil)
}
return NewAccountError(ErrKeyDatabaseOperationFailed, result.Error)
return NewAccountError(ErrKeySecurityInvalidToken, nil)
}
if verification.ExpiresAt.Before(time.Now()) {