diff options
author | Steven Barth <steven@midlink.org> | 2008-08-22 20:04:04 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-08-22 20:04:04 +0000 |
commit | 4eead17501584a09679841d75d451b19a7c234d0 (patch) | |
tree | 351625bc0972a76f5f3987253adf13cdd438c6c6 /libs | |
parent | 9c6a852939c4f16f5d82299ff7b3a10f15ac3db0 (diff) |
RPC part #2
Diffstat (limited to 'libs')
-rw-r--r-- | libs/web/luasrc/dispatcher.lua | 4 |
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") |