Skip to content

Commit

Permalink
remove password from GET
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-wilson committed Jan 7, 2024
1 parent ae953b5 commit 84c0611
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions main/http_server/http_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ static esp_err_t GET_system_info(httpd_req_t * req)
}

char * ssid = nvs_config_get_string(NVS_CONFIG_WIFI_SSID, CONFIG_ESP_WIFI_SSID);
char * wifiPass = nvs_config_get_string(NVS_CONFIG_WIFI_PASS, CONFIG_ESP_WIFI_PASSWORD);
char * stratumURL = nvs_config_get_string(NVS_CONFIG_STRATUM_URL, CONFIG_STRATUM_URL);
char * stratumUser = nvs_config_get_string(NVS_CONFIG_STRATUM_USER, CONFIG_STRATUM_USER);

Expand All @@ -351,7 +350,6 @@ static esp_err_t GET_system_info(httpd_req_t * req)
cJSON_AddNumberToObject(root, "coreVoltageActual", ADC_get_vcore());
cJSON_AddNumberToObject(root, "frequency", nvs_config_get_u16(NVS_CONFIG_ASIC_FREQ, CONFIG_ASIC_FREQUENCY));
cJSON_AddStringToObject(root, "ssid", ssid);
cJSON_AddStringToObject(root, "wifiPass", wifiPass);
cJSON_AddStringToObject(root, "wifiStatus", GLOBAL_STATE->SYSTEM_MODULE.wifi_status);
cJSON_AddNumberToObject(root, "sharesAccepted", GLOBAL_STATE->SYSTEM_MODULE.shares_accepted);
cJSON_AddNumberToObject(root, "sharesRejected", GLOBAL_STATE->SYSTEM_MODULE.shares_rejected);
Expand All @@ -372,7 +370,6 @@ static esp_err_t GET_system_info(httpd_req_t * req)
cJSON_AddNumberToObject(root, "fanspeed", nvs_config_get_u16(NVS_CONFIG_FAN_SPEED, 100));

free(ssid);
free(wifiPass);
free(stratumURL);
free(stratumUser);

Expand Down

0 comments on commit 84c0611

Please sign in to comment.