diff options
Diffstat (limited to 'modules/luci-mod-admin-mini/luasrc/controller/mini')
-rw-r--r-- | modules/luci-mod-admin-mini/luasrc/controller/mini/index.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/luci-mod-admin-mini/luasrc/controller/mini/index.lua b/modules/luci-mod-admin-mini/luasrc/controller/mini/index.lua index 9d6a38ed43..6800f9bfd9 100644 --- a/modules/luci-mod-admin-mini/luasrc/controller/mini/index.lua +++ b/modules/luci-mod-admin-mini/luasrc/controller/mini/index.lua @@ -37,9 +37,11 @@ end function action_logout() local dsp = require "luci.dispatcher" - local sauth = require "luci.sauth" + local utl = require "luci.util" if dsp.context.authsession then - sauth.kill(dsp.context.authsession) + utl.ubus("session", "destroy", { + ubus_rpc_session = dsp.context.authsession + }) dsp.context.urltoken.stok = nil end |