diff --git a/tokens/sessions.go b/tokens/sessions.go index 8f13c48..8d5519a 100644 --- a/tokens/sessions.go +++ b/tokens/sessions.go @@ -27,7 +27,7 @@ func ValidateSessionToken(token string) bool { sessionID := getSessionIDFromToken(token) dbc := db.Connect() session := &db.Session{} - if err := dbc.Debug().Find(session, db.Session{ID: sessionID}).Error; err != nil { + if err := dbc.Find(session, db.Session{ID: sessionID}).Error; err != nil { log.Printf("DBERROR: %v\n", err) return false }