From b1e67634df7d0f1a9e883d38d14d9fbe6dac61ec Mon Sep 17 00:00:00 2001 From: maru Date: Fri, 29 Dec 2023 15:01:04 -0500 Subject: [PATCH] Fix generated token size --- api/account.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/account.go b/api/account.go index 33a3933..7e3160b 100644 --- a/api/account.go +++ b/api/account.go @@ -142,7 +142,7 @@ func (s *Server) HandleAccountLogin(w http.ResponseWriter, r *http.Request) { return } - token := make([]byte, 16) + token := make([]byte, 32) _, err = rand.Read(token) if err != nil {