I am new to ejabberd and erlang and have created a basic application that first checks that whether the user has login or not. So basically it checks the mnesia table of login and confirms this.
Now I saw that ejabberd also has a registration process for users as inejabberdctl register username host password
and I since I was using sql authentication I saw that there is a table named users
which has all the users and the password stored.
I wanted to know the flow of sequence that how these values get stored there and was hoping to use it to push these values of username and password
into my mnesia table for login.
I had a look at ejabberd developer guide and found that mod_register handles the registration of a new user but I could not trace down exactly what function is getting used inside it to do all the proceedings.
I was using the method of writing info messages to the logs. Can anybody help me on this? Thanks in advance.