summaryrefslogtreecommitdiffhomepage
path: root/libs/web
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-08-22 20:04:04 +0000
committerSteven Barth <steven@midlink.org>2008-08-22 20:04:04 +0000
commit4eead17501584a09679841d75d451b19a7c234d0 (patch)
tree351625bc0972a76f5f3987253adf13cdd438c6c6 /libs/web
parent9c6a852939c4f16f5d82299ff7b3a10f15ac3db0 (diff)
RPC part #2
Diffstat (limited to 'libs/web')
-rw-r--r--libs/web/luasrc/dispatcher.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua
index dc551916a..2de5ea4b1 100644
--- a/libs/web/luasrc/dispatcher.lua
+++ b/libs/web/luasrc/dispatcher.lua
@@ -171,7 +171,9 @@ function dispatch(request)
if track.sysauth then
require("luci.sauth")
- local authen = authenticator[track.sysauth_authenticator]
+ local authen = type(track.sysauth_authenticator) == "function"
+ and track.sysauth_authenticator
+ or authenticator[track.sysauth_authenticator]
local def = (type(track.sysauth) == "string") and track.sysauth
local accs = def and {track.sysauth} or track.sysauth
local sess = luci.http.getcookie("sysauth")