fix: password length support to 50
This commit is contained in:
+2
-2
@@ -18,8 +18,8 @@ type auth struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ReqAuth struct {
|
type ReqAuth struct {
|
||||||
Username string `json:"username" validate:"required,max=36" label:"用户名"`
|
Username string `json:"username" validate:"required,max=50" label:"用户名"`
|
||||||
Password string `json:"passwd" validate:"required,max=36" label:"密码"`
|
Password string `json:"passwd" validate:"required,max=50" label:"密码"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetAuth(c *gin.Context) {
|
func GetAuth(c *gin.Context) {
|
||||||
|
|||||||
Reference in New Issue
Block a user