Reputation: 2497
I am trying to setup a chat messanger using xmpp and smack.
I am able to connect,login
m_connection.connect();
SASLAuthentication.supportSASLMechanism("PLAIN", 0);
m_connection.login(userName, password);
Also I am able to create new users as admin.
AccountManager ac = m_connection.getAccountManager();
ac.createAccount(user, password);
The only thing that is missing in my cycle is when a client wants to register for the first time. How does the admin user get a notification/request for creating a new user. Is there any listener that I might have missed?
Thanks!
Upvotes: 0
Views: 270
Reputation: 6376
You just provide them with a registration form and then use the createAccount
method as you have done in your example.
Upvotes: 2