X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=modules%2Fluci-mod-admin-mini%2Fluasrc%2Fcontroller%2Fmini%2Findex.lua;h=dd25f2c52bb305ce70c514dd107c57eb3cf5e2ba;hp=9d6a38ed4373cbc3711f145d42907c9f3e8b621f;hb=cc801de89ca4793638099595d7e61e06a7a5cd66;hpb=1bb4822dca6113f73e3bc89e2acf15935e6f8e92 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 9d6a38ed4..dd25f2c52 100644 --- a/modules/luci-mod-admin-mini/luasrc/controller/mini/index.lua +++ b/modules/luci-mod-admin-mini/luasrc/controller/mini/index.lua @@ -1,17 +1,6 @@ ---[[ -LuCI - Lua Configuration Interface - -Copyright 2008 Steven Barth -Copyright 2008 Jo-Philipp Wich - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -$Id$ -]]-- +-- Copyright 2008 Steven Barth +-- Copyright 2008 Jo-Philipp Wich +-- Licensed to the public under the Apache License 2.0. module("luci.controller.mini.index", package.seeall) @@ -37,9 +26,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