diff options
author | Steven Barth <steven@midlink.org> | 2008-06-29 14:43:06 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-06-29 14:43:06 +0000 |
commit | b8240f3516945b5969bfcfeb1fcc057759f5dd4b (patch) | |
tree | 75bc66ea10609d4b11981d8ab88e2c335e7357a6 /modules/admin-core/luasrc | |
parent | ee324cb3a70d39dc9522a1ee63af12137d433533 (diff) |
* libs/web: Added Logout support
* libs/web: Fixed a bug with an invalid calling convention in luci.dispatcher
* libs/sys: Fixed rudimentary posix.crypt detection
Diffstat (limited to 'modules/admin-core/luasrc')
-rw-r--r-- | modules/admin-core/luasrc/controller/admin/index.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/admin-core/luasrc/controller/admin/index.lua b/modules/admin-core/luasrc/controller/admin/index.lua index 93d2e4787..eb58e0042 100644 --- a/modules/admin-core/luasrc/controller/admin/index.lua +++ b/modules/admin-core/luasrc/controller/admin/index.lua @@ -40,5 +40,10 @@ function index() page.target = cbi("admin_index/luci") page.title = i18n("a_i_ui", "Oberfläche") - + entry({"admin", "logout"}, call("action_logout"), i18n("logout")) +end + +function action_logout() + luci.http.header("Set-Cookie", "sysauth=; path=/") + luci.http.redirect(luci.dispatcher.build_url()) end
\ No newline at end of file |