Move consts in account package to common.go

fasthttp
maru 2024-04-15 03:18:40 -04:00
parent f395dc145b
commit 39199dc1b1
No known key found for this signature in database
GPG Key ID: 37689350E9CD0F0D
2 changed files with 3 additions and 5 deletions

View File

@ -21,6 +21,9 @@ const (
ArgonThreads = 4
ArgonKeySize = 32
ArgonSaltSize = 16
UUIDSize = 16
TokenSize = 32
)
var isValidUsername = regexp.MustCompile(`^\w{1,16}$`).MatchString

View File

@ -7,11 +7,6 @@ import (
"github.com/pagefaultgames/pokerogue-server/db"
)
const (
UUIDSize = 16
TokenSize = 32
)
type RegisterRequest GenericAuthRequest
// /account/register - register account