refactoring db; added email-verification
This commit is contained in:
@@ -3,7 +3,12 @@ package errors
|
||||
import "errors"
|
||||
|
||||
var (
|
||||
ErrNotFound = errors.New("not found")
|
||||
ErrUserNotFound = errors.New("user not found")
|
||||
ErrInvalidEmail = errors.New("invalid email")
|
||||
ErrInvalidCredentials = errors.New("invalid credentials: unauthorized")
|
||||
ErrAlreadyVerified = errors.New("user is already verified")
|
||||
ErrTokenNotFound = errors.New("verification token not found")
|
||||
ErrTokenNotSet = errors.New("verification token has not been set")
|
||||
ErrNoData = errors.New("no data provided")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user