diff --git a/http/node_info.lua b/http/node_info.lua index e143ca2..0adec13 100644 --- a/http/node_info.lua +++ b/http/node_info.lua @@ -28,5 +28,6 @@ return function (connection, req, args) sendAttr(connection, 'Station IP address' , ip) sendAttr(connection, 'Station subnet mask' , subnetMask) sendAttr(connection, 'MAC address' , wifi.sta.getmac()) + sendAttr(connection, 'Auth user' , req.user) connection:send('') end diff --git a/httpserver.lua b/httpserver.lua index 18cba4b..a244335 100644 --- a/httpserver.lua +++ b/httpserver.lua @@ -125,6 +125,7 @@ return function (port) end if user and req.methodIsValid and (req.method == "GET" or req.method == "POST" or req.method == "PUT") then + req.user = user handleRequest(connection, req, handleError) else local args = {}