Hello, I have no idea why mod_register:send_registration_notifications(Mod, UJID, Source) calls ejabberd_auth_sql:is_user_exists() again after registration is done and send notification to the watch dogs.
To access the most up-to-date ejabberd documentation, please visit docs.ejabberd.im »
Hello, I have no idea why mod_register:send_registration_notifications(Mod, UJID, Source) calls ejabberd_auth_sql:is_user_exists() again after registration is done and send notification to the watch dogs.
I cannot reproduce. I add
I cannot reproduce.
I add debug lines in ejabberd_auth_sql.erl, so I see in logs when those functions are called. Then I start ejabberd in live mode, so I get an Erlang shell, and login an admin user. Then I execute this call:
I see no activity in ejabberd_auth_sql module
Let me show you my code in
Let me show you my code in ejabberd_auth_sql.erl :
After ran mod_register:send_registration_notifications() in the debug shell here is what is shown in the shell
And the message is sent to dev23.
Note : i am using ejabberd-17.04.41