refactor: use ErrKeySecurityInvalidToken
This commit is contained in:
parent
adc5bc213e
commit
4ca78df050
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue