git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
7d7fcec
)
applications/luci-splash: do explicit check for state new
author
Jo-Philipp Wich
<redacted>
Thu, 9 Jul 2009 17:01:50 +0000
(17:01 +0000)
committer
Jo-Philipp Wich
<redacted>
Thu, 9 Jul 2009 17:01:50 +0000
(17:01 +0000)
applications/luci-splash/luasrc/controller/splash/splash.lua
patch
|
blob
|
history
diff --git
a/applications/luci-splash/luasrc/controller/splash/splash.lua
b/applications/luci-splash/luasrc/controller/splash/splash.lua
index 3519a03afb229bb9d8bdb7881ca417be1f506264..2906298f1d7b933d89b538597f884273607533e7 100644
(file)
--- a/
applications/luci-splash/luasrc/controller/splash/splash.lua
+++ b/
applications/luci-splash/luasrc/controller/splash/splash.lua
@@
-13,10
+13,10
@@
end
function action_dispatch()
local mac = luci.sys.net.ip4mac(luci.http.getenv("REMOTE_ADDR")) or ""
local status = luci.util.execl("luci-splash status " .. mac)[1]
- if #mac > 0 and ( status == "whitelist" or status == "lease" ) then
- luci.http.redirect(luci.dispatcher.build_url())
- else
+ if #mac > 0 and status == "new" then
luci.http.redirect(luci.dispatcher.build_url("splash", "splash"))
+ else
+ luci.http.redirect(luci.dispatcher.build_url())
end
end
git clone https://git.99rst.org/PROJECT