We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebcc1ac commit 38f90e8Copy full SHA for 38f90e8
esp-idf
main/src/user/http_app_token.c
@@ -36,9 +36,9 @@ esp_err_t http_app_token_event_handler(esp_http_client_event_t *evt)
36
cJSON *root = NULL;
37
if (evt->data_len) {
38
root = cJSON_Parse(evt->data);
39
- if (cJSON_HasObjectItem(root, "status")) {
40
- cJSON *status = cJSON_GetObjectItemCaseSensitive(root, "status");
41
- if (cJSON_IsTrue(status)) {
+ if (cJSON_HasObjectItem(root, "result")) {
+ cJSON *result = cJSON_GetObjectItemCaseSensitive(root, "result");
+ if (cJSON_IsTrue(result)) {
42
ESP_LOGW(TAG, "authentication success");
43
#ifdef CONFIG_ENABLE_GUI
44
gui_set_mode(GUI_MODE_IDX_GIF_DONE);
0 commit comments