diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-02-09 13:03:44 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-02-09 13:03:44 +0100 |
commit | ec90cd69ed80ea4dfe8a9d44a42b155470c47b6b (patch) | |
tree | 70b6d0a68f0b8ecd857010b4e48328a382589ab9 /modules | |
parent | 240458ea8a5353683fab48eb6e10b65779985ab8 (diff) |
luci-base: pass session timeout as integer
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/luci-base/luasrc/dispatcher.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/luasrc/dispatcher.lua b/modules/luci-base/luasrc/dispatcher.lua index a80dd706e..f92af528e 100644 --- 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 - 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", { |