changeset 3556 | 5370bc374c83 |
parent 3553 | b059a3fb2a58 |
child 3557 | 5b15ce870a5b |
--- a/mod_invite/mod_invite.lua Fri Apr 05 19:02:43 2019 +0200 +++ b/mod_invite/mod_invite.lua Fri Apr 05 19:06:20 2019 +0200 @@ -34,13 +34,11 @@ end) end -function generate_page(event) +function generate_page(event, token) local request, response = event.request, event.response; local tokens = invite_storage:get() or {}; - local token = request.path:match("^/invite/([^/]*)$"); - response.headers.content_type = "text/html; charset=utf-8"; if not token or not tokens[token] then