luci-base: pass session timeout as integer
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
parent
240458ea8a
commit
ec90cd69ed
1 changed files with 1 additions and 1 deletions
|
@ -333,7 +333,7 @@ function dispatch(request)
|
||||||
return
|
return
|
||||||
else
|
else
|
||||||
if not sess then
|
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
|
if sdat then
|
||||||
local token = sys.uniqueid(16)
|
local token = sys.uniqueid(16)
|
||||||
util.ubus("session", "set", {
|
util.ubus("session", "set", {
|
||||||
|
|
Loading…
Reference in a new issue