diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-04-30 20:36:02 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-04-30 20:36:02 +0000 |
commit | 0ec64b27143691be06918b6f0cdd3e70bc98b2dd (patch) | |
tree | 147271d37572bc74f5eae5bfc762f050fc436ef6 /prototypejsdemo-model.lua | |
parent | cf5e02febbb87497ae7f5477928d0358fee6885c (diff) | |
download | acf-sandbox-0ec64b27143691be06918b6f0cdd3e70bc98b2dd.tar.bz2 acf-sandbox-0ec64b27143691be06918b6f0cdd3e70bc98b2dd.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/sandbox/trunk@1052 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'prototypejsdemo-model.lua')
-rw-r--r-- | prototypejsdemo-model.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/prototypejsdemo-model.lua b/prototypejsdemo-model.lua index b0d3b05..6ddc2a3 100644 --- a/prototypejsdemo-model.lua +++ b/prototypejsdemo-model.lua @@ -250,14 +250,14 @@ iface.validate = function ( def ) def.method.errtxt = "Method specified is invalid" for k,v in pairs (iface.methods) do if def.method.value == v then - def.method.errtxt = "" + def.method.errtxt = nil end end -- More validation tests go here --- -- local rc = true for k,v in pairs(def) do - if #def[k].errtxt > 0 then result = false end + if def[k].errtxt then result = false end end return result, def |