From 660ea666d99a81fc405e4a39dd80317a307653bb Mon Sep 17 00:00:00 2001 From: stefanp Date: Tue, 26 Mar 2002 16:11:18 +0000 Subject: [PATCH] makekey now uses createAuth() and shows a nice form. --- Root/makekey.hac | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Root/makekey.hac b/Root/makekey.hac index f032c96f..1ba50f12 100644 --- a/Root/makekey.hac +++ b/Root/makekey.hac @@ -1,10 +1,11 @@ -if ( checkAddress()==false ) return; -if ( checkAuth()==false ) return; - -if ( req.data.value!=null ) { - res.write ( Packages.helma.util.MD5Encoder.encode(req.data.value) ); -} else { - res.write ( '
' ); +// strictly limit access to localhost: +if ( req.data.http_remotehost!="localhost" && req.data.http_remotehost!="127.0.0.1" ) { + app.__app__.logEvent( req.data.http_remotehost + " tried to access makekey"); + return; } +if ( checkAuth()==false ) return; + +createAuth(); +