I added password protection support.
NanoDLP authentication works as following:
POST request with a form containing username and password, implemented in nanoDlpService._getSession() function;
If succeed, the server replies with a set-header value of Cookie: "session=<hash>", also handled by nanoDlpService._getSession() function; otherwise the server redirects to the login page;
Following request should include Cookie: "session=<hash>" into the headers to be authorized.
It works well, but please check if /bin folder is compiled properly or otherwise recompile before accepting the PR.
I added password protection support. NanoDLP authentication works as following:
nanoDlpService._getSession()
function;Cookie: "session=<hash>"
, also handled bynanoDlpService._getSession()
function; otherwise the server redirects to the login page;Cookie: "session=<hash>"
into the headers to be authorized.It works well, but please check if /bin folder is compiled properly or otherwise recompile before accepting the PR.
To enable it, modify config.json.