summaryrefslogtreecommitdiffstats
path: root/app/acf-util/logon-controller.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-04-30 20:36:02 +0000
committerTed Trask <ttrask01@yahoo.com>2008-04-30 20:36:02 +0000
commit378e53f20a0f11c36afffbaef78f47a5303df9ce (patch)
treea39e3c216dc10f919ef272c53b67a8f01f001be0 /app/acf-util/logon-controller.lua
parent82fd96bdcc5b721d8fc208fe4edba54f4dc6fdb7 (diff)
downloadacf-core-378e53f20a0f11c36afffbaef78f47a5303df9ce.tar.bz2
acf-core-378e53f20a0f11c36afffbaef78f47a5303df9ce.tar.xz
Modified cfe, removing option, errtxt, and name, and adding label - This may break things.
Rewrote password module, adding model Modified authenticator to make password module work git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1052 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'app/acf-util/logon-controller.lua')
-rw-r--r--app/acf-util/logon-controller.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/acf-util/logon-controller.lua b/app/acf-util/logon-controller.lua
index 7d4447b..1dc3360 100644
--- a/app/acf-util/logon-controller.lua
+++ b/app/acf-util/logon-controller.lua
@@ -6,7 +6,9 @@ default_action = "status"
-- Logon a new user based upon id and password in clientdata
logon = function(self)
- local cmdresult = cfe({ value=clientdata.userid or "", name="User ID" })
+ local userid = cfe({ value=clientdata.userid or "", label="User ID" })
+ local password = cfe({ label="Password" })
+ local cmdresult = cfe({ type="form", value={userid=userid, password=password}, label="Logon" })
if clientdata.userid and clientdata.password then
local logon = self.model:logon(clientdata, conf.clientip, conf.sessiondir, sessiondata)
-- If successful logon, redirect to status, otherwise try again
@@ -28,8 +30,8 @@ end
-- Report the login status
status = function(self)
- local name = cfe({ name="User Name" })
- local sessionid = cfe({ value=self.sessiondata.id or "", name="Session ID" })
+ local name = cfe({ label="User Name" })
+ local sessionid = cfe({ value=self.sessiondata.id or "", label="Session ID" })
if self.sessiondata.userinfo then
name.value = self.sessiondata.userinfo.username or ""
end