Software /
code /
prosody
Diff
plugins/mod_http_file_share.lua @ 11501:2c9db2278fed
mod_http_file_share: Group related properties for readability
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 05 Apr 2021 17:15:12 +0200 |
parent | 11500:21706a581b8a |
child | 11502:8fd760c04cdf |
line wrap: on
line diff
--- a/plugins/mod_http_file_share.lua Mon Apr 05 16:24:39 2021 +0200 +++ b/plugins/mod_http_file_share.lua Mon Apr 05 17:15:12 2021 +0200 @@ -134,12 +134,16 @@ function get_authz(slot, uploader, filename, filesize, filetype) return jwt.sign(secret, { + -- token properties sub = uploader; + exp = os.time()+300; + + -- slot properties + slot = slot; + -- file properties filename = filename; filesize = filesize; filetype = filetype; - slot = slot; - exp = os.time()+300; }); end