From 7d628393a95bec519bfc3c5643fb7f00bac77e38 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 24 Sep 2008 23:01:06 +0000 Subject: [PATCH] * luci/app/chillispot: replace macauth with generalized auth cbi model --- ...{chillispot_macauth.lua => chillispot_auth.lua} | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) rename applications/luci-chillispot/luasrc/model/cbi/{chillispot_macauth.lua => chillispot_auth.lua} (79%) diff --git a/applications/luci-chillispot/luasrc/model/cbi/chillispot_macauth.lua b/applications/luci-chillispot/luasrc/model/cbi/chillispot_auth.lua similarity index 79% rename from applications/luci-chillispot/luasrc/model/cbi/chillispot_macauth.lua rename to applications/luci-chillispot/luasrc/model/cbi/chillispot_auth.lua index b042911b6..8f033f070 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 -- 2.11.0