Hello,
I want to allow clients to unregister themselves in-band. However, I have a separate registration process, i.e. out of band. Hence, I have "{access, register, [{deny, all}]}." in my config.
From looking at the code at
Is that correct?
Is there any module that allows me to set up unregistration?
You are right in your
You are right in your understanding. And there isn't any option right now in ejabberd to solve your question.
But if you can modify the source code and compile it, then you can apply this small change that breaks registration, so it is always disallowed:
Interesting approach. Is
Interesting approach.
Is there a way to put that in a module so that I don't have to patch ejabberd again once I update it?
Maybe I can copy mod_register to mod_unregister and somehow not load mod_register?
muelli wrote: Interesting
Interesting approach.
Is there a way to put that in a module so that I don't have to patch ejabberd again once I update it?
Maybe I can copy mod_register to mod_unregister and somehow not load mod_register?
Yes, and replace the line: -module(mod_register). with: -module(mod_unregister).
Compile your module, copy it where all the others, disable mod_register and enable mod_unregister.
badlop wrote: ---
Thanks. I created a mod_unregister and applied the patch.
I couldn't compile it outside of the ejabberd git tree though:
Letting the file live just next to mod_register works.
And the module seems to work, too :-) thanks!
I used the webinterface to load the mod_register and load mod_unregister. Interestingly, registering still works (we had it enabled for a different domain) but that's not a problem. I presume this will be solved with a restart of ejabberd.