Fix generated token size

pull/1/head
maru 2023-12-29 15:01:04 -05:00
parent 575167f0f9
commit b1e67634df
No known key found for this signature in database
GPG Key ID: 37689350E9CD0F0D
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ func (s *Server) HandleAccountLogin(w http.ResponseWriter, r *http.Request) {
return return
} }
token := make([]byte, 16) token := make([]byte, 32)
_, err = rand.Read(token) _, err = rand.Read(token)
if err != nil { if err != nil {