Opened 7 years ago
Last modified 7 years ago
#4509 new defect
Patch ejabberd to allow registration of two accounts before registration_timeout applies
Reported by: | elexis | Owned by: | |
---|---|---|---|
Priority: | Should Have | Milestone: | Backlog |
Component: | Multiplayer lobby | Keywords: | |
Cc: | Patch: |
Description
The multiplayer lobby server is an ejabberd instance. Accounts are created using the mod_register module.
If the same IP address has created an account before, it has to wait registration_timeout
seconds before being able to register a second account.
This conflicts with a relevant use case of two people in the same room trying to play multiplayer games online (and I would't be surprised if that has been reported > 100 times since the lobby function was published.)
It should be possible to patch that in the 663 lines of code in that registration module and propose the patch upstream (and maybe apply it locally if that takes a long time).
Maybe the variable could be named registration_timeout_threshold
and state how many accounts can be created before the registration_timeout
rule takes effect.
(As of march 2017, I couldn't find any open issues containing the "registration" and no relevant open issues containing "timeout", so we have to create a new issue once we have a patch.)
The code is located in [L439 https://github.com/processone/ejabberd/blob/master/src/mod_register.erl#L439] afaics. Maybe we should create an [Issue https://github.com/processone/ejabberd/issues] before.