From 39199dc1b13386676756ce4230c02ce051ef435f Mon Sep 17 00:00:00 2001 From: maru Date: Mon, 15 Apr 2024 03:18:40 -0400 Subject: [PATCH] Move consts in account package to common.go --- api/account/common.go | 3 +++ api/account/register.go | 5 ----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/api/account/common.go b/api/account/common.go index 93f17ed..bfa3e39 100644 --- a/api/account/common.go +++ b/api/account/common.go @@ -21,6 +21,9 @@ const ( ArgonThreads = 4 ArgonKeySize = 32 ArgonSaltSize = 16 + + UUIDSize = 16 + TokenSize = 32 ) var isValidUsername = regexp.MustCompile(`^\w{1,16}$`).MatchString diff --git a/api/account/register.go b/api/account/register.go index 664dea8..e8433cb 100644 --- a/api/account/register.go +++ b/api/account/register.go @@ -7,11 +7,6 @@ import ( "github.com/pagefaultgames/pokerogue-server/db" ) -const ( - UUIDSize = 16 - TokenSize = 32 -) - type RegisterRequest GenericAuthRequest // /account/register - register account