summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-chillispot/luasrc/model
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-09-24 23:01:06 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-09-24 23:01:06 +0000
commit7d628393a95bec519bfc3c5643fb7f00bac77e38 (patch)
treea120100e148455f55025467d18ff1d5b20793d2d /applications/luci-chillispot/luasrc/model
parentc2e719d70557d912a72a1408c82c76d34d2fc4a3 (diff)
* luci/app/chillispot: replace macauth with generalized auth cbi model
Diffstat (limited to 'applications/luci-chillispot/luasrc/model')
-rw-r--r--applications/luci-chillispot/luasrc/model/cbi/chillispot_auth.lua (renamed from applications/luci-chillispot/luasrc/model/cbi/chillispot_macauth.lua)22
1 files changed, 11 insertions, 11 deletions
diff --git a/applications/luci-chillispot/luasrc/model/cbi/chillispot_macauth.lua b/applications/luci-chillispot/luasrc/model/cbi/chillispot_auth.lua
index b042911b63..8f033f070e 100644
--- a/applications/luci-chillispot/luasrc/model/cbi/chillispot_macauth.lua
+++ b/applications/luci-chillispot/luasrc/model/cbi/chillispot_auth.lua
@@ -53,24 +53,24 @@ s1:option( Value, "nasmac" ).optional = true
s1:option( Value, "wwwdir" ).optional = true
s1:option( Value, "wwwbin" ).optional = true
-s:option( Value, "localusers" ).optional = true
-s:option( Value, "postauthproxy" ).optional = true
-s:option( Value, "postauthproxyport" ).optional = true
-s:option( Value, "locationname" ).optional = true
+s1:option( Value, "localusers" ).optional = true
+s1:option( Value, "postauthproxy" ).optional = true
+s1:option( Value, "postauthproxyport" ).optional = true
+s1:option( Value, "locationname" ).optional = true
-- mac authentication
-s = m:section(TypedSection, "macauth")
-s.anonymous = true
+s2 = m:section(TypedSection, "macauth")
+s2.anonymous = true
-s:option( Flag, "macauth" )
-s:option( Flag, "macallowlocal" )
-s:option( DynamicList, "macallowed" )
+s2:option( Flag, "macauth" )
+s2:option( Flag, "macallowlocal" )
+s2:option( DynamicList, "macallowed" )
-pw = s:option( Value, "macpasswd" )
+pw = s2:option( Value, "macpasswd" )
pw.optional = true
pw.password = true
-s:option( Value, "macsuffix" ).optional = true
+s2:option( Value, "macsuffix" ).optional = true
return m