Allow Basic-Auth pass-through
[project/luci.git] / libs / lucid-http / luasrc / lucid / http / server.lua
index 0fe9473..cb10813 100644 (file)
@@ -132,6 +132,7 @@ function Handler.checkrestricted(self, request)
                end
                
                if stat then
+                       request.env.HTTP_AUTH_USER, request.env.HTTP_AUTH_PASS = user, pass
                        return
                end
        end