Mercurial > prosody-modules
view mod_invites/README.markdown @ 3879:3b31ff7b4c7c
mod_rest: Fix traceback
Might have been caused by receiving a stanza here. Otherwise how could
there be an util.error object without .context ?
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 04 Feb 2020 22:22:47 +0100 |
parents | 824447fc7759 |
children | 96838617695a |
line wrap: on
line source
This module manages the creation and consumption of invite codes for the host(s) it is loaded onto. It currently does not expose any admin/user-facing functionality (though in the future it will probably gain a way to view/manage pending invites). Other modules can use the API from this module to create invite tokens which can be used to e.g. register accounts or create automatic subscription approvals. # Configuration ``` {.lua} -- Configure the number of seconds a token is valid for (default 7 days) invite_expiry = 86400 * 7 ``` Note that all modules that use this API will automatically load this module, so adding it to modules_enabled is generally not necessary. # Compatibility 0.11 and later.