Code cleanup

This commit is contained in:
Maximilian committed 2022-12-04 18:04:24 -06:00
1 parent ed2d0063f0
commit e8e42f3724
5 files changed
+25 -21

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ import (
)
// GenerateCsrfToken generates a csrf token and assigns it to a cookie for double submit cookie csrf protection
func GenerateCsrfToken(w http.ResponseWriter, r *http.Request) (string, error) {
func GenerateCsrfToken(w http.ResponseWriter, _ *http.Request) (string, error) {
// Generate random 64 character string (alpha-numeric)
buff := make([]byte, int(math.Ceil(float64(64)/2)))
_, err := rand.Read(buff)