diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-05-15 20:15:32 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-05-15 20:15:32 +0000 |
commit | 846a69204d0d2e54638f8e08a3052b2316827cab (patch) | |
tree | f1e567623b6be1e62f91ba1cfe9383308790bcc9 /app/acf-util/logon-controller.lua | |
parent | c1c2252c53ffcb14b98443f8ee2c6da40551f160 (diff) | |
download | acf-core-846a69204d0d2e54638f8e08a3052b2316827cab.tar.bz2 acf-core-846a69204d0d2e54638f8e08a3052b2316827cab.tar.xz |
For cfe.type='form', use cfe.option as the command to save the form data i.e. can be used as button name. Modified pages that use 'form' to also use 'option'.
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1122 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'app/acf-util/logon-controller.lua')
-rw-r--r-- | app/acf-util/logon-controller.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/acf-util/logon-controller.lua b/app/acf-util/logon-controller.lua index 2a55c7a..b83da37 100644 --- a/app/acf-util/logon-controller.lua +++ b/app/acf-util/logon-controller.lua @@ -8,8 +8,8 @@ default_action = "status" logon = function(self) 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 cmdresult = cfe({ type="form", value={userid=userid, password=password}, label="Logon", option="Logon" }) + if clientdata.Logon then local logon = self.model:logon(clientdata, conf.clientip, conf.sessiondir, sessiondata) -- If successful logon, redirect to welcome-page, otherwise try again if logon.value then |