Better naming of functions and files, delete less than helpful comments

This commit is contained in:
Maximilian committed 2023-08-03 12:09:40 -05:00
1 parent a1438f4fe2
commit 9670b7d717
14 files changed
+82 -103

No files matched your search

-1
View File
@@ -9,7 +9,6 @@ import (
// Csrf validates the CSRF token and returns the handler function if it succeded
func Csrf(f func(w http.ResponseWriter, r *http.Request)) func(w http.ResponseWriter, r *http.Request) {
return func(w http.ResponseWriter, r *http.Request) {
// Verify csrf token
_, err := security.VerifyCsrfToken(r)
if err != nil {
log.Println("Error verifying csrf token")