diff http/src/luan/modules/http/Server.luan @ 753:5e3970ccd86a

improve password handling
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 15 Jul 2016 17:35:50 -0600
parents 2c41f2aec92f
children 3f461f85243d
line wrap: on
line diff
--- a/http/src/luan/modules/http/Server.luan	Fri Jul 15 16:18:22 2016 -0600
+++ b/http/src/luan/modules/http/Server.luan	Fri Jul 15 17:35:50 2016 -0600
@@ -33,8 +33,6 @@
 
 M.port = 8080
 
-M.private_password = "password"
-
 M.welcome_file = "index.html"
 
 
@@ -86,7 +84,7 @@
 	function Io.schemes.site(path)
 		return Io.uri( dir..path )
 	end
-	M.authentication_handler.setPassword(M.private_password)
+	M.authentication_handler.setPassword(Io.password)
 	local base = dir
 	if matches(base,"^classpath:") then
 		base = dir.."#"..M.welcome_file.."#"..M.welcome_file..".luan"