projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
luci-base: pass session timeout as integer
[project/luci.git]
/
modules
/
luci-base
/
luasrc
/
dispatcher.lua
diff --git
a/modules/luci-base/luasrc/dispatcher.lua
b/modules/luci-base/luasrc/dispatcher.lua
index
a80dd70
..
f92af52
100644
(file)
--- a/
modules/luci-base/luasrc/dispatcher.lua
+++ b/
modules/luci-base/luasrc/dispatcher.lua
@@
-333,7
+333,7
@@
function dispatch(request)
return
else
if not sess then
return
else
if not sess then
- local sdat = util.ubus("session", "create", { timeout =
luci.config.sauth.sessiontime
})
+ local sdat = util.ubus("session", "create", { timeout =
tonumber(luci.config.sauth.sessiontime)
})
if sdat then
local token = sys.uniqueid(16)
util.ubus("session", "set", {
if sdat then
local token = sys.uniqueid(16)
util.ubus("session", "set", {