diff options
author | Matthew Wild <mwild1@gmail.com> | 2025-04-16 12:02:31 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2025-04-16 12:02:31 +0100 |
commit | 68f2229e784e167934d094a7547b36643f12e32e (patch) | |
tree | 6693bd2de4f665c1b8a8661d3680d45943516db4 /plugins | |
parent | 7e16a71be809f444029bbbdc401f686f912e7028 (diff) | |
download | prosody-13.0.tar.gz prosody-13.0.zip |
mod_invites_register: Don't restrict username for roster invites (thanks lissine)origin/13.013.0
The username field of roster invites is the username of the inviter. It is not
possible for a roster invite to restrict the registration username.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_invites_register.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_invites_register.lua b/plugins/mod_invites_register.lua index 76b644c7..27824db1 100644 --- a/plugins/mod_invites_register.lua +++ b/plugins/mod_invites_register.lua @@ -103,7 +103,7 @@ module:hook("user-registering", function (event) end if validated_invite then local username = validated_invite.username; - if username and username ~= event.username then + if validated_invite.type ~= "roster" and username and username ~= event.username then event.allowed = false; event.reason = "The chosen username is not valid with this invitation"; end |