fix: password length support to 50

This commit is contained in:
engigu
2024-03-07 14:17:12 +08:00
parent 32cb690616
commit f0e4bf0727
+2 -2
View File
@@ -18,8 +18,8 @@ type auth struct {
}
type ReqAuth struct {
Username string `json:"username" validate:"required,max=36" label:"用户名"`
Password string `json:"passwd" validate:"required,max=36" label:"密码"`
Username string `json:"username" validate:"required,max=50" label:"用户名"`
Password string `json:"passwd" validate:"required,max=50" label:"密码"`
}
func GetAuth(c *gin.Context) {