Commit Graph
10 Commits
Author SHA1 Message Date
Devon HudsonandClaude Opus 5 4ad436fb33 Add a POST /api/admin/v1/room-invites admin endpoint
Mints a single-use, passwordless registration token per recipient, pinned to
their address and optionally to a username, and schedules the invite emails.
The links are only ever mailed to the recipients, so the response carries a
count rather than the tokens.

Minting moves out of the queue and into the caller so a username that is
already taken is refused up front, rather than emailed out as a link nobody
can register with. That leaves the fan-out job with nothing to do, so
`SendRoomInviteEmailsJob` goes away and `SendRoomInviteEmailJob` carries the
token: it takes both the address and the invite link from it, which replaces
the `matrix.to` stub and keeps the link and its recipient together.

`manage send-room-invites` and the endpoint share the minting through
`mas_storage::room_invite`.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-28 14:22:00 -06:00
Devon HudsonandClaude Opus 5 4872e25929 Add a manage send-room-invites command
Schedules a `SendRoomInviteEmailsJob` from the command line, so the room
invite emails can be triggered by hand without an API caller. A worker has
to be running to actually send them.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-16 11:52:03 -06:00
Noah Gao aeae198d0e docs: fix manage command positional arguments 2026-09-06 02:57:35 +08:00
beposec e3a0ec75b2 Update command to list admin users in CLI docs
There was a wrong example in the Codeblock.
2026-03-27 18:20:13 +01:00
Olivier 'reivilibre a89eb28a37 cli docs: Fix --usage-limit and --unlimited 2025-11-25 12:05:32 +00:00
teutat3s 163357a85e docs: add missing --reactivate option 2025-10-17 19:39:34 +02:00
Quentin Gliech 815ce17cc5 Simple CLI commands to manage server admins 2025-09-16 12:42:32 +02:00
Quentin Gliech 5d13691acd CLI tool to issue user registration tokens 2025-06-03 17:42:55 +02:00
Will Lewis 20ee39af20 Add documentation to account for all cli mas options and standardise format 2025-02-07 13:38:36 +00:00
Quentin Gliech 87dc0debbf docs: Rename the "usage" section to "reference" 2024-05-14 10:44:41 +02:00