changeset 1149:1b7c20e20ca7

remove /private/ authentication
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 04 Feb 2018 17:23:20 -0700
parents 49fb4e83484f
children 0842b9b570f8
files src/luan/modules/http/jetty/Server.luan
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/luan/modules/http/jetty/Server.luan	Sun Feb 04 17:11:06 2018 -0700
+++ b/src/luan/modules/http/jetty/Server.luan	Sun Feb 04 17:23:20 2018 -0700
@@ -36,15 +36,13 @@
 Server.welcome_file = "index.html"
 
 
-Server.authentication_handler = AuthenticationHandler.new("/private/")
-
 Server.luan_handler = LuanHandler.new()
 
 Server.resource_handler = ResourceHandler.new()
 Server.resource_handler.setDirectoriesListed(true)
 
 Server.handlers = HandlerList.new()
-Server.handlers.setHandlers { Server.authentication_handler, Server.luan_handler, Server.resource_handler }
+Server.handlers.setHandlers { Server.luan_handler, Server.resource_handler }
 
 function Server.add_folder(context,dir)
 	local rh = ResourceHandler.new()
@@ -85,7 +83,6 @@
 	function Io.schemes.site(path)
 		return Io.uri( dir..path )
 	end
-	Server.authentication_handler.setPassword(Io.password)
 	local base = dir
 	if matches(base,"^classpath:") then
 		base = dir.."#"..Server.welcome_file.."#"..Server.welcome_file..".luan"