makekey now uses createAuth() and shows a nice form.

This commit is contained in:
stefanp 2002-03-26 16:11:18 +00:00
parent ddd6149251
commit 660ea666d9

View file

@ -1,10 +1,11 @@
if ( checkAddress()==false ) return; // strictly limit access to localhost:
if ( checkAuth()==false ) return; 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");
if ( req.data.value!=null ) { return;
res.write ( Packages.helma.util.MD5Encoder.encode(req.data.value) );
} else {
res.write ( '<html><head></head><body><form method=post action=makekey><input type=password name=value><input type=submit></form></body></html>' );
} }
if ( checkAuth()==false ) return;
createAuth();