removing api_key (unused)

pull/554/head
hunterlong 2020-04-30 23:59:16 -07:00
parent d9e3cabb4e
commit 73c3366625
4 changed files with 0 additions and 5 deletions

View File

@ -38,7 +38,6 @@ func apiIndexHandler(r *http.Request) interface{} {
func apiRenewHandler(w http.ResponseWriter, r *http.Request) {
var err error
core.App.ApiKey = utils.NewSHA256Hash()
core.App.ApiSecret = utils.NewSHA256Hash()
err = core.App.Update()
if err != nil {

View File

@ -47,7 +47,6 @@ func (c *Core) Create() error {
Name: c.Name,
Description: c.Description,
ConfigFile: utils.Directory + "/config.yml",
ApiKey: utils.RandomString(32),
ApiSecret: secret,
Version: App.Version,
Domain: c.Domain,

View File

@ -17,7 +17,6 @@ func Samples() error {
core := &Core{
Name: "Statping Sample Data",
Description: "This data is only used to testing",
ApiKey: apiKey,
ApiSecret: apiSecret,
Domain: "http://localhost:8080",
CreatedAt: utils.Now(),

View File

@ -232,8 +232,6 @@ func CheckHttp(s *Service, record bool) *Service {
headers = strings.Split(s.Headers.String, ",")
} else {
headers = nil
log.Warnf("Custom set Headers are not valid for Server '%s'!\n",
s.Name)
}
// check if 'Content-Type' header was defined