From 1e413e086f533cfcaa2acd142078518a43f465e5 Mon Sep 17 00:00:00 2001 From: imldy Date: Sun, 13 Aug 2023 02:49:23 +0800 Subject: [PATCH 1/2] refactor: Update token length validation to allow names up to 100 characters. --- controller/token.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/token.go b/controller/token.go index 8642122c..7670cf46 100644 --- a/controller/token.go +++ b/controller/token.go @@ -109,7 +109,7 @@ func AddToken(c *gin.Context) { }) return } - if len(token.Name) > 30 { + if len(token.Name) > 100 { c.JSON(http.StatusOK, gin.H{ "success": false, "message": "令牌名称过长", From dce182e748a7d428ceea139ac645cd8445407069 Mon Sep 17 00:00:00 2001 From: imldy Date: Sun, 13 Aug 2023 18:03:27 +0800 Subject: [PATCH 2/2] refactor: Update token length validation to allow names up to 100 characters. --- controller/token.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/token.go b/controller/token.go index 7670cf46..ff0eb89f 100644 --- a/controller/token.go +++ b/controller/token.go @@ -171,7 +171,7 @@ func UpdateToken(c *gin.Context) { }) return } - if len(token.Name) > 30 { + if len(token.Name) > 100 { c.JSON(http.StatusOK, gin.H{ "success": false, "message": "令牌名称过长",