Skip to content

Commit

Permalink
Fix pincode reading in websocket
Browse files Browse the repository at this point in the history
This was affecting the user list and the user export
  • Loading branch information
matjack1 committed Jun 11, 2024
1 parent 33a44b7 commit 8c9ff93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wsResponses.esp
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ void ICACHE_FLASH_ATTR sendUserList(int page, AsyncWebSocketClient *client)
if (!error)
{
String username = json["user"];
const char * pincode = "";
String pincode = "";
if(json.containsKey("pincode"))
{
pincode = json["pincode"];
pincode = String((const char *)json["pincode"]);
}
for (int x = 1; x <= MAX_NUM_RELAYS; x++)
{
Expand Down

0 comments on commit 8c9ff93

Please sign in to comment.