mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Fixing token size issue (#6258)
This commit is contained in:
committed by
GitHub
parent
fb3cc12f56
commit
bd9acee72b
@@ -6,7 +6,7 @@ package model
|
||||
import "net/http"
|
||||
|
||||
const (
|
||||
TOKEN_SIZE = 128
|
||||
TOKEN_SIZE = 64
|
||||
MAX_TOKEN_EXIPRY_TIME = 1000 * 60 * 60 * 24 // 24 hour
|
||||
)
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ func NewSqlTokenStore(sqlStore *SqlStore) TokenStore {
|
||||
|
||||
for _, db := range sqlStore.GetAllConns() {
|
||||
table := db.AddTableWithName(model.Token{}, "Tokens").SetKeys(false, "Token")
|
||||
table.ColMap("Token").SetMaxSize(64)
|
||||
table.ColMap("Type").SetMaxSize(64)
|
||||
table.ColMap("Extra").SetMaxSize(128)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user