AnsweredAssumed Answered

Sign up a new user

Question asked by Steve on Aug 9, 2016
Latest reply on Aug 19, 2016 by Flow

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?

Thank you.

P.s. Sorry, couldn't appropriately insert code because something went wrong and code doubled itself.

Outcomes