From f9fa6d82da4f15473a49822d6d9dfda34144b85e Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sun, 10 Aug 2008 12:58:05 +0000 Subject: * libs/web: Reworked authentication --- libs/httpd/host/runluci | 3 +++ libs/httpd/luasrc/httpd/handler/luci.lua | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'libs/httpd') diff --git a/libs/httpd/host/runluci b/libs/httpd/host/runluci index 6f6cdde3df..d31b3f79c5 100755 --- a/libs/httpd/host/runluci +++ b/libs/httpd/host/runluci @@ -23,6 +23,9 @@ if pcall(require, "uci") and pcall(require, "luci.model.uci") then luci.model.uci.set_confdir(luci.model.uci.confdir_default) end +require("luci.sys") +luci.sys.user.checkpasswd = function() return true end + filehandler = luci.httpd.handler.file.Simple(DOCROOT) vhost:set_default_handler(filehandler) diff --git a/libs/httpd/luasrc/httpd/handler/luci.lua b/libs/httpd/luasrc/httpd/handler/luci.lua index 232883256e..ac3ed78d0a 100644 --- a/libs/httpd/luasrc/httpd/handler/luci.lua +++ b/libs/httpd/luasrc/httpd/handler/luci.lua @@ -32,7 +32,6 @@ end function Luci.handle_head(self, ...) local response, sourceout = self:handle_get(...) - self.running = self.running - 1 return response end @@ -67,7 +66,6 @@ function Luci.handle_get(self, request, sourcein, sinkerr) status = 500 headers["Content-Type"] = "text/plain" local err = {id} - self.running = self.running - 1 return Response( status, headers ), function() return table.remove(err) end end -- cgit v1.2.3