Fix generated token size

pull/1/head
maru 12 months ago
parent 575167f0f9
commit b1e67634df
No known key found for this signature in database
GPG Key ID: 37689350E9CD0F0D

@ -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 {

Loading…
Cancel
Save