Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUserNotFound = errors.New("wrong email or password")
View Source
var TokenExpired = errors.New("token expired")
Functions ¶
This section is empty.
Types ¶
type RefreshSession ¶
type SignUp ¶
type SignUp struct { FirstName string `json:"first_name" validate:"required,lte=20,gte=2"` SecondName string `json:"last_name" validate:"required,lte=25,gte=2"` Email string `json:"email" validate:"required,email"` Birthday string `json:"birthday" validate:"required"` Password string `json:"password" validate:"required,lte=64,gte=8,containsany=.!@#$%,containsany=1234567890"` }
Click to show internal directories.
Click to hide internal directories.