Matthew Wild
13dc010593
mod_invites: Hide --group flag unless mod_invites_groups is enabled
...
The WIP groups support is not complete yet, and won't work without extra
modules (which are not yet a part of Prosody). For now we hide --group support
unless mod_invites_groups (community module) is specified in modules_enabled.
2025-02-17 23:06:06 +00:00
Matthew Wild
edc68f5407
mod_invites: Fix traceback when no flags passed
2025-02-17 22:57:58 +00:00
Matthew Wild
764c388d38
mod_invites: Deprecate 'mod_invites generate' in favour of new shell commands
2025-02-17 19:12:40 +00:00
Kim Alvefur
f21ea48481
mod_invites: Fix storing --group (thanks lissine)
...
This made it ignore `--group` completely, but if you incorrectly used
`--group foo` it would store `groups=true`.
Introduced in 9ba11ef91ce4
2025-02-17 00:55:27 +01:00
Matthew Wild
f5f2755b63
mod_cloud_notify, mod_cron, mod_invites: Add 'prosody.' prefix to requires
2025-02-15 10:31:37 +00:00
Matthew Wild
91e846ee71
mod_invites: Add shell commands to list, show and delete pending invitations
2025-02-13 13:04:37 +00:00
Matthew Wild
94385af697
mod_invites: Shell command to create reset links
2025-02-13 12:21:16 +00:00
Matthew Wild
d0457564a3
mod_invites: Add support for invites_page option to use external invites pages
...
This allows Prosody to easily provide friendly invitation links, even without
setting up mod_invites_page (which is a community module). Admins can
configure it to use a third-party deployment such as https://xmpp.link or they
can deploy their own based on
https://github.com/modernxmpp/easy-xmpp-invitation
Alternatively they can just install mod_invites_page and this will all be
handled automatically by that.
2025-01-09 13:23:46 +00:00
Kim Alvefur
84ca2bd960
Merge 0.12->trunk
2024-08-30 18:16:01 +02:00
Emmanuel Gil Peyrot
a719f5897c
mod_invites: Fix traceback when token_info isn’t set
2024-07-31 22:06:18 +02:00
Kim Alvefur
b18280d35f
mod_invites: Prefer landing page over xmpp URI in shell command
...
To mirror behavior of prosodyctl invocation
2023-01-10 21:10:58 +01:00
Kim Alvefur
607f8ffee5
mod_invites: Fix argument handling
...
Not sure what the next() was supposed to do. Reject unknown --options
perhaps?
2024-01-21 20:08:00 +01:00
Kim Alvefur
a2539d4dcd
mod_invites: Show short help instead of traceback on missing hostname
2024-01-13 11:00:20 +01:00
Kim Alvefur
2a5e7ab8be
mod_invites: Show help if --help passed instead of hostname
...
Because I couldn't guess the right way to get the help message without
reading the source twice.
2024-01-13 10:59:04 +01:00
Kim Alvefur
1252713d89
mod_invites: Allow specifying invite ttl on command line
...
Was missing a way to pass TTL via command or shell.
2024-01-13 10:58:12 +01:00
Matthew Wild
34b4ec02fe
mod_invites: Fix linter issues
2023-11-29 17:50:33 +00:00
Matthew Wild
d200b57cfe
mod_invites: Use new shell-command API
2023-11-29 17:34:44 +00:00
Kim Alvefur
1987a7411f
plugins: Switch to :get_option_period() for time range options
...
Improves readability ("1 day" vs 86400) and centralizes validation.
2023-07-16 20:49:33 +02:00
Kim Alvefur
97f85e98f2
mod_invites: Refactor argument handling using util.argparse
...
This makes it so that --admin and --role are no longer mutually
exclusive, they the former is simply treated as another --role.
This was likely a leftover from when only a single role was possible.
It does however become unclear which should be the primary, since the
order is not preserved by argparse.
Bonus: Loading of modules is avoided with only the --help is shown.
2022-01-12 10:23:13 +01:00
Kim Alvefur
e83f8984a8
mod_invites: Fix password reset invites
...
Caused by roles changing from table|nil to always table in c2616274bef7
2023-05-07 12:52:31 +02:00
Kim Alvefur
11ada4e339
mod_invites: Record roles as ordered list, first becoming primary role
...
For mod_invites_register to apply on user creation.
2023-03-30 11:09:08 +02:00
Kim Alvefur
98922d54b1
plugins: Prefix module imports with prosody namespace
2023-03-24 13:15:28 +01:00
Kim Alvefur
f1dd97cb9c
mod_invites: Comment on module loading for HTTP invite URLs
2022-01-05 22:37:42 +01:00
Kim Alvefur
3cffb62920
mod_invites: Silence luacheck warning
2022-01-05 20:43:18 +01:00
Kim Alvefur
93578db96d
mod_invites: Import from prosdy-modules@5fc306239db3
2021-12-27 20:46:34 +01:00