actually check the api key

This commit is contained in:
gempir 2020-09-27 12:24:42 +02:00
parent 4923ac607b
commit 02fb386ea0

View file

@ -17,7 +17,7 @@ func (s *Server) authenticateAdmin(w http.ResponseWriter, r *http.Request) bool
return false
}
return true
return apiKey == s.cfg.AdminAPIKey
}
type channelConfigsDeleteRequest struct {