summaryrefslogtreecommitdiff
path: root/handlers.go
diff options
context:
space:
mode:
Diffstat (limited to 'handlers.go')
-rw-r--r--handlers.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/handlers.go b/handlers.go
index a0d98e4..df1794a 100644
--- a/handlers.go
+++ b/handlers.go
@@ -100,12 +100,5 @@ func ApiAuthentication(db *sql.DB) http.Handler {
w.WriteHeader(http.StatusBadRequest)
return
}
-
- err = Authenticate(db, data.Username, data.Password)
- if err != nil {
- log.Print("Failed to authenticate user.")
- w.WriteHeader(http.StatusUnauthorized)
- return
- }
})
}