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 /libs/web/luasrc/dispatcher.lua | |
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 'libs/web/luasrc/dispatcher.lua')
-rw-r--r-- | libs/web/luasrc/dispatcher.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua index 7c28f6a78..689d060d5 100644 --- a/libs/web/luasrc/dispatcher.lua +++ b/libs/web/luasrc/dispatcher.lua @@ -75,7 +75,7 @@ function sysauth(default) if user and luci.sys.user.checkpasswd(user, pass) then local sid = luci.sys.uniqueid(16) - luci.http.header("Set-Cookie", "sysauth=" .. sid) + luci.http.header("Set-Cookie", "sysauth=" .. sid.."; path=/") luci.sauth.write(sid, user) return true else @@ -291,7 +291,7 @@ end -- Reassigns a node to another position function assign(path, clone, title, order) - local obj = node(path) + local obj = node(unpack(path)) obj.nodes = nil obj.module = nil |