From 9b1bb634aea47414793c41cf7be5e2c285de96a9 Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 4 Jun 2007 14:24:18 +0000 Subject: Forwarding login and password to LUA. --- lib/HttpServ.cc | 4 +++- lib/LuaHttp.cc | 10 +++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/HttpServ.cc b/lib/HttpServ.cc index 6e369fa..6dee7ad 100644 --- a/lib/HttpServ.cc +++ b/lib/HttpServ.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: HttpServ.cc,v 1.48 2007-06-02 11:29:30 pixel Exp $ */ +/* $Id: HttpServ.cc,v 1.49 2007-06-04 14:24:18 pixel Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -228,6 +228,8 @@ int ProcessRequest::Do() throw(GeneralException) { request.vars = Vars; request.headers = Heads; request.uri = Uri; + request.login = login; + request.password = password; d->Do(request, &response); a = response.BuildResponse(&s); } else { diff --git a/lib/LuaHttp.cc b/lib/LuaHttp.cc index 92af759..5d2cbb2 100644 --- a/lib/LuaHttp.cc +++ b/lib/LuaHttp.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: LuaHttp.cc,v 1.12 2007-05-30 22:36:31 pixel Exp $ */ +/* $Id: LuaHttp.cc,v 1.13 2007-06-04 14:24:18 pixel Exp $ */ #include "Domain.h" #include "LuaHttp.h" @@ -276,6 +276,14 @@ class LuaDomain : public Domain { L->push(req.uri); L->settable(); + L->push("login"); + L->push(req.login); + L->settable(); + + L->push("password"); + L->push(req.password); + L->settable(); + LuaHttpResponse r(res); r.push(L); -- cgit v1.2.3