refactor: Update token length validation to allow names up to 100 characters.

This commit is contained in:
imldy 2023-08-13 02:49:23 +08:00
parent da1d81998f
commit 1e413e086f

View File

@ -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": "令牌名称过长",