From 0ec64b27143691be06918b6f0cdd3e70bc98b2dd Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 30 Apr 2008 20:36:02 +0000 Subject: 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 --- prototypejsdemo-model.lua | 4 ++-- 1 file 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 -- cgit v1.2.3