diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-10-21 16:42:39 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-10-21 16:43:07 +0200 |
commit | b4d62d3fd7c7093828c84b5f408cfb0ff6d84939 (patch) | |
tree | 3b2d31088f2bd0e871984d9d6035d5606a5c8f6d /modules/luci-mod-admin-full/luasrc | |
parent | 86326e0deff92a485ffd47e22ac70194abb3fd66 (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')
-rw-r--r-- | modules/luci-mod-admin-full/luasrc/controller/admin/index.lua | 4 |
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 |