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>
This commit is contained in:
parent
86326e0def
commit
b4d62d3fd7
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue