[ejabberd] disable unregistration

Badlop badlop at gmail.com
Sun Apr 24 02:26:37 MSD 2011


2011/4/23 sergio <mailbox at sergio.spb.ru>:
> Is it possible to disable user unregistration (deletion), when I use mnesia?

Not configurable, but easy to disable in the source code:

--- a/src/mod_register.erl
+++ b/src/mod_register.erl
@@ -160,7 +160,7 @@ process_iq(From, To,
                              jlib:make_jid(User, Server, Resource),
                              jlib:make_jid(User, Server, Resource),
                              jlib:iq_to_xml(ResIQ)),
-                           ejabberd_auth:remove_user(User, Server),
+                           %% ejabberd_auth:remove_user(User, Server),
                            ignore;
                        _ ->
                            IQ#iq{type = error,


---
Badlop
ProcessOne


More information about the ejabberd mailing list