aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/register.lib.lua
Commit message (Collapse)AuthorAgeFilesLines
* muc.register: Clarify what's going on when enforcing nicknamesKim Alvefur2023-11-031-0/+2
| | | | Does this make it clearer what is going on?
* plugins: Prefix module imports with prosody namespaceKim Alvefur2023-03-241-5/+5
|
* MUC: Remove <{muc}x> tags in some errorsKim Alvefur2021-12-081-2/+2
| | | | | Including the payload of the stanza that caused the error is optional and we're generally not doing it anywhere else.
* MUC: Fix error origin JID in wrong argument positionKim Alvefur2021-12-081-1/+1
| | | | | Mistake introduced in cbe524ed1a6a. Removing because this is a query to the bare JID where the error origin matches the resulting stanza 'from'.
* MUC: Add option to include form in registration queryMatthew Wild2021-11-151-3/+11
| | | | | | | | | | | | | | | | | | | This was originally not done based on my interpretation of XEP-0045. Today's reading, however, revealed that it actually says the result > SHOULD contain **at least** a <username/> element (emphasis mine) I take this to mean that including a form **is** allowed (and I think this is sensible). Tigase already includes the form I believe. I've gated the new behaviour behind a (default off) option, because it hasn't been tested for compatibility with clients. My primary desire for it is in Snikket, where the clients will be tested to ensure compatibility with this. I don't anticipate that (m)any clients would break, so maybe after 0.12 we can experiment with enabling it by default and eventually remove the option.
* MUC: Allow modules to add to the room registration form, and handle the resultMatthew Wild2021-01-151-0/+23
|
* MUC: Enforce strict resourceprep when registering room nicknamesKim Alvefur2020-05-021-1/+1
| | | | | | | If nickname enforcement is enabled this would otherwise let you bypass the join check in muc.lib by registering an invalid nickname and then joining with any nickname, letting register.lib change it to the invalid registered nick.
* MUC: Indicate origin of registration related errorsKim Alvefur2019-11-251-3/+3
|
* MUC: Make nickname field in registration form requiredKim Alvefur2019-11-021-1/+1
| | | | | | Prevents traceback from resourceprep(nil) muc#register_roomnick is also required in XEP-0045
* Merge 0.11->trunkKim Alvefur2019-10-201-2/+0
|\
| * MUC: Don't advertise registration feature on host JID (fixes #1451)Kim Alvefur2019-10-201-2/+0
| | | | | | | | | | | | | | | | | | | | | | There is currently no mention in XEP-0045 of how or where to advertise support for registration. Advertising on the host JID may be confusable with service-wide registration, as implemented in ejabberd. A common and sensible pattern in XMPP is that a feature is advertised on the JID where the service is available.
* | MUC: Validate registration dataform more carefullyKim Alvefur2019-10-201-1/+13
| |
* | MUC: Simplify nickname refresh loopKim Alvefur2019-08-251-2/+1
|/ | | | Affiliation data is passed as a loop variable so no need to retrieve it
* MUC: If a user with an existing affiliation registers, preserve that ↵Matthew Wild2018-09-131-1/+1
| | | | affiliation (thanks jc)
* MUC: Move comment for clarityMatthew Wild2018-09-041-1/+1
|
* MUC: Add support for registering with a MUC, including reserving a nickname ↵Matthew Wild2018-09-031-0/+195
as per XEP-0045