Cleanup + add video format

This commit is contained in:
viktorstrate
2020-07-13 18:01:31 +02:00
parent 21f66b9e62
commit 82b18f0e9b
2 changed files with 4 additions and 1 deletions

View File

@@ -28,7 +28,6 @@ func Middleware(db *sql.DB) func(http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
if tokenCookie, err := r.Cookie("auth-token"); err == nil {
log.Println("Found auth-token cookie")
user, err := models.VerifyTokenAndGetUser(db, tokenCookie.Value)
if err != nil {
log.Printf("Invalid token: %s\n", err)