mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 03:52:06 +01:00
Merge pull request #573 from Flowdalic/sinttest-ibr
[sinttest] Fix IBR-based account registration
This commit is contained in:
commit
535ecd67ee
1 changed files with 2 additions and 2 deletions
|
@ -187,14 +187,14 @@ public class XmppConnectionManager {
|
||||||
case inBandRegistration:
|
case inBandRegistration:
|
||||||
accountRegistrationConnection = defaultConnectionDescriptor.construct(sinttestConfiguration);
|
accountRegistrationConnection = defaultConnectionDescriptor.construct(sinttestConfiguration);
|
||||||
accountRegistrationConnection.connect();
|
accountRegistrationConnection.connect();
|
||||||
accountRegistrationConnection.login(sinttestConfiguration.adminAccountUsername,
|
|
||||||
sinttestConfiguration.adminAccountPassword);
|
|
||||||
|
|
||||||
if (sinttestConfiguration.accountRegistration == AccountRegistration.inBandRegistration) {
|
if (sinttestConfiguration.accountRegistration == AccountRegistration.inBandRegistration) {
|
||||||
|
|
||||||
adminManager = null;
|
adminManager = null;
|
||||||
accountManager = AccountManager.getInstance(accountRegistrationConnection);
|
accountManager = AccountManager.getInstance(accountRegistrationConnection);
|
||||||
} else {
|
} else {
|
||||||
|
accountRegistrationConnection.login(sinttestConfiguration.adminAccountUsername,
|
||||||
|
sinttestConfiguration.adminAccountPassword);
|
||||||
adminManager = ServiceAdministrationManager.getInstanceFor(accountRegistrationConnection);
|
adminManager = ServiceAdministrationManager.getInstanceFor(accountRegistrationConnection);
|
||||||
accountManager = null;
|
accountManager = null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue