mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2025-07-12 22:03:29 +02:00
Let backend generate dockey in Onlyoffice
This commit is contained in:
@ -22,8 +22,14 @@ end
|
||||
|
||||
local handle = {}
|
||||
|
||||
handle.token = function()
|
||||
return result("sessionid="..SESSION.sessionid)
|
||||
handle.token = function(data)
|
||||
local file = vfs.ospath(data.file)
|
||||
local stat = ulib.file_stat(file)
|
||||
local ret = {
|
||||
sid = "sessionid="..SESSION.sessionid,
|
||||
key = std.sha1(file..":"..stat.mtime)
|
||||
}
|
||||
return result(ret)
|
||||
end
|
||||
|
||||
handle.duplicate = function(data)
|
||||
|
Reference in New Issue
Block a user