Hi all,  Why I can not get "pinpro" value? I got empty!
/etc/config/verify
config pin
        option pincode1 '1'
        option oldcode '11'
        option protect 'disable'

In the model/cbi
function code.write(self, section, value)
        local pinpro = m.uci:get("verify", "pin", "protect")
 ---------------> is empty
        if pinpro == "enable" then
                pincode:add_error(section, translate("enable"))
        else
                pincode:add_error(section, translate("disable"))
        end
end

thanks all.
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to