mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-04-03 03:27:13 +08:00
Move consts in account package to common.go
This commit is contained in:
parent
f395dc145b
commit
39199dc1b1
@ -21,6 +21,9 @@ const (
|
|||||||
ArgonThreads = 4
|
ArgonThreads = 4
|
||||||
ArgonKeySize = 32
|
ArgonKeySize = 32
|
||||||
ArgonSaltSize = 16
|
ArgonSaltSize = 16
|
||||||
|
|
||||||
|
UUIDSize = 16
|
||||||
|
TokenSize = 32
|
||||||
)
|
)
|
||||||
|
|
||||||
var isValidUsername = regexp.MustCompile(`^\w{1,16}$`).MatchString
|
var isValidUsername = regexp.MustCompile(`^\w{1,16}$`).MatchString
|
||||||
|
@ -7,11 +7,6 @@ import (
|
|||||||
"github.com/pagefaultgames/pokerogue-server/db"
|
"github.com/pagefaultgames/pokerogue-server/db"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
|
||||||
UUIDSize = 16
|
|
||||||
TokenSize = 32
|
|
||||||
)
|
|
||||||
|
|
||||||
type RegisterRequest GenericAuthRequest
|
type RegisterRequest GenericAuthRequest
|
||||||
|
|
||||||
// /account/register - register account
|
// /account/register - register account
|
||||||
|
Loading…
x
Reference in New Issue
Block a user