Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion app/modules/enduser_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -832,9 +832,14 @@ static int enduser_setup_http_handle_credentials(char *data, unsigned short data
state->success = 0;
state->lastStationStatus = 0;


char *name_str = strstr(data, "wifi_ssid=");
char *pwd_str = strstr(data, "wifi_password=");
if (name_str == NULL || pwd_str == NULL)

// in case we dont get a passwd (for open networks)
if (pwd_str == NULL) { pwd_str="wifi_password="; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be an ENDUSER_SETUP_DEBUG note about this.
Maybe

ENDUSER_SETUP_DEBUG("Password string not found. Setting to empty");


if (name_str == NULL)
{
ENDUSER_SETUP_DEBUG("Password or SSID string not found");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please adapt the Message. "SSID string not found"

return 1;
Expand Down