X-Git-Url: http://git.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=modules%2Fluci-base%2Fluasrc%2Fdispatcher.lua;fp=modules%2Fluci-base%2Fluasrc%2Fdispatcher.lua;h=c4066a25920c26ff2c9d7113405096866238bcff;hp=1e610e748919edd1601e5026ea12f62755b3bfe9;hb=425a02734e28ec41403511aa1c46cbe489930ff1;hpb=5dddb105d2f7a96bf135154c7aceb6f830bc0463 diff --git a/modules/luci-base/luasrc/dispatcher.lua b/modules/luci-base/luasrc/dispatcher.lua index 1e610e7489..c4066a2592 100644 --- a/modules/luci-base/luasrc/dispatcher.lua +++ b/modules/luci-base/luasrc/dispatcher.lua @@ -417,6 +417,7 @@ function dispatch(request) context.path = {} http.status(403, "Forbidden") + http.header("X-LuCI-Login-Required", "yes") tmpl.render(track.sysauth_template or "sysauth", { duser = default_user, fuser = user @@ -433,6 +434,7 @@ function dispatch(request) if not sid or not sdat then http.status(403, "Forbidden") + http.header("X-LuCI-Login-Required", "yes") return end