Checked for secure.fields in the wrong place.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 10 Feb 2014 19:42:31 -0500
changeset 24 c34cc914f09d
parent 23 a5c3269e6d99
child 25 44b6b8b34eb8
Checked for secure.fields in the wrong place.
1pass.lua
--- a/1pass.lua	Sun Feb 09 00:17:38 2014 -0500
+++ b/1pass.lua	Mon Feb 10 19:42:31 2014 -0500
@@ -128,6 +128,11 @@
     local password = nil
     local email = nil
 
+    if secure.fields == nil then
+      print("no secure fields, don't know how to handle this item") 
+      return
+    end
+
     for i,v in ipairs(secure.fields) do
         --print(info.name .. ": " .. v.type .. ", " .. v.value)
         local ignored = false
@@ -241,10 +246,6 @@
         return
     end
     --dumptable("secure " .. info.name, secure)
-    if secure.fields == nil then
-      print("no secure fields, don't know how to handle this item") 
-      return
-    end
 
     local menuitem = appendGuiMenuItem(menu, info.name)