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

This commit is contained in:
imldy 2023-08-13 18:03:27 +08:00
parent 1e413e086f
commit dce182e748

View File

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