actually check the api key
This commit is contained in:
parent
4923ac607b
commit
02fb386ea0
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue