diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/luci-mod-rpc/luasrc/controller/rpc.lua | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/luci-mod-rpc/luasrc/controller/rpc.lua b/modules/luci-mod-rpc/luasrc/controller/rpc.lua index 1e8038b28..37a976035 100644 --- a/modules/luci-mod-rpc/luasrc/controller/rpc.lua +++ b/modules/luci-mod-rpc/luasrc/controller/rpc.lua @@ -14,7 +14,6 @@ function session_retrieve(sid, allowed_users) if type(sdat) == "table" and type(sdat.values) == "table" and type(sdat.values.token) == "string" and - type(sdat.values.secret) == "string" and type(sdat.values.username) == "string" and util.contains(allowed_users, sdat.values.username) then @@ -78,8 +77,7 @@ function rpc_auth() util.ubus("session", "set", { ubus_rpc_session = login.ubus_rpc_session, values = { - token = sys.uniqueid(16), - secret = sys.uniqueid(16) + token = sys.uniqueid(16) } }) @@ -87,8 +85,7 @@ function rpc_auth() if sdat then return { sid = sid, - token = sdat.token, - secret = sdat.secret + token = sdat.token } end end |