add middlewares, handlers and database models
This commit is contained in:
parent
979a415b95
commit
7e288ea67a
24 changed files with 1045 additions and 14 deletions
|
|
@ -14,6 +14,12 @@ var (
|
|||
ErrInvalidCredentials = errors.New("invalid email or password")
|
||||
ErrNoPassword = errors.New("account uses passwordless login. Use magic link")
|
||||
ErrPasswordsDoNotMatch = errors.New("passwords do not match")
|
||||
ErrEmailAlreadyExists = errors.New("email already exists")
|
||||
ErrWeakPassword = errors.New("password must be at least 12 characters")
|
||||
ErrCommonPassword = errors.New("password is too common, please choose a stronger one")
|
||||
ErrEmailNotVerified = errors.New("email not verified")
|
||||
ErrInvalidEmail = errors.New("invalid email address")
|
||||
ErrNameRequired = errors.New("name is required")
|
||||
)
|
||||
|
||||
type AuthService struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue