I’m working with Openfire and Smack. My problem is, whenever I want to sign someone up I need to log into Openfire, like this:
connection.login(Username, Password); AccountManager accountManager = AccountManager.getInstance(connection); accountManager.createAccount(Username1, Password1);
So, can I somehow avoid this useless login?
P.s. Sorry, couldn’t appropriately insert code because something went wrong and code doubled itself.