From ee0326da0ed7f35ba3e9774ee4fbec60b8d74d02 Mon Sep 17 00:00:00 2001 From: maru Date: Thu, 28 Dec 2023 21:20:46 -0500 Subject: [PATCH] Fix minimum username length --- api/account.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/account.go b/api/account.go index 9d51f1d..5696575 100644 --- a/api/account.go +++ b/api/account.go @@ -21,7 +21,7 @@ const ( argonKeyLength = 32 ) -var isValidUsername = regexp.MustCompile(`^\w{6,16}$`).MatchString +var isValidUsername = regexp.MustCompile(`^\w{1,16}$`).MatchString // /api/account/info - get account info