From: Jo-Philipp Wich Date: Wed, 21 Oct 2015 14:42:39 +0000 (+0200) Subject: luci-mod-admin-full: do not access dispatcher.context.urltoken in logout X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b4d62d3fd7c7093828c84b5f408cfb0ff6d84939;p=project%2Fluci.git 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 --- 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