summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-admin-full/luasrc/controller/admin
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-10-21 16:42:39 +0200
committerJo-Philipp Wich <jow@openwrt.org>2015-10-21 16:43:07 +0200
commitb4d62d3fd7c7093828c84b5f408cfb0ff6d84939 (patch)
tree3b2d31088f2bd0e871984d9d6035d5606a5c8f6d /modules/luci-mod-admin-full/luasrc/controller/admin
parent86326e0deff92a485ffd47e22ac70194abb3fd66 (diff)
luci-mod-admin-full: do not access dispatcher.context.urltoken in logout
The urltoken table is going to be removed. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'modules/luci-mod-admin-full/luasrc/controller/admin')
-rw-r--r--modules/luci-mod-admin-full/luasrc/controller/admin/index.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/luci-mod-admin-full/luasrc/controller/admin/index.lua b/modules/luci-mod-admin-full/luasrc/controller/admin/index.lua
index d00d546b64..cc8c2e3ae6 100644
--- a/modules/luci-mod-admin-full/luasrc/controller/admin/index.lua
+++ b/modules/luci-mod-admin-full/luasrc/controller/admin/index.lua
@@ -33,12 +33,10 @@ function action_logout()
if sid then
utl.ubus("session", "destroy", { ubus_rpc_session = sid })
- dsp.context.urltoken.stok = nil
-
luci.http.header("Set-Cookie", "sysauth=%s; expires=%s; path=%s/" %{
sid, 'Thu, 01 Jan 1970 01:00:00 GMT', dsp.build_url()
})
end
- luci.http.redirect(luci.dispatcher.build_url())
+ luci.http.redirect(dsp.build_url())
end