Fixed a bug where HTTP authentication was not functioning properly.

This commit is contained in:
casey langen 2020-05-25 19:36:41 -07:00
parent 3705cdef9f
commit dafcafa11d

View File

@ -252,8 +252,6 @@ static std::string getStringUrlParam(
}
static bool isAuthenticated(MHD_Connection *connection, Context& context) {
return true;
const char* disableAuth = std::getenv(ENVIRONMENT_DISABLE_HTTP_SERVER_AUTH);
if (disableAuth && std::string(disableAuth) == "1") {
return true;