feat: middleware for request body parsing, validation and authentication;
feat: helper function for getting request info from gin context
This commit is contained in:
@@ -25,7 +25,7 @@ type Tokens struct {
|
||||
type RegistrationBeginRequest struct {
|
||||
Username string `json:"username" binding:"required,min=3,max=20"`
|
||||
Email *string `json:"email" binding:"email"`
|
||||
Password string `json:"password" binding:"required,password"` // TODO: password checking
|
||||
Password string `json:"password" binding:"required"` // TODO: password checking
|
||||
}
|
||||
|
||||
// TODO: length check
|
||||
|
||||
Reference in New Issue
Block a user