From f0e4bf07277e32480ed700c076715f24473ece2f Mon Sep 17 00:00:00 2001 From: engigu Date: Thu, 7 Mar 2024 14:17:12 +0800 Subject: [PATCH] fix: password length support to 50 --- routers/api/auth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routers/api/auth.go b/routers/api/auth.go index 356aef1..ca25808 100644 --- a/routers/api/auth.go +++ b/routers/api/auth.go @@ -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) {