1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-25 03:57:58 +01:00

Merge pull request #573 from Flowdalic/sinttest-ibr

[sinttest] Fix IBR-based account registration
This commit is contained in:
Florian Schmaus 2023-11-26 12:56:13 +00:00 committed by GitHub
commit 535ecd67ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -187,14 +187,14 @@ public class XmppConnectionManager {
case inBandRegistration:
accountRegistrationConnection = defaultConnectionDescriptor.construct(sinttestConfiguration);
accountRegistrationConnection.connect();
accountRegistrationConnection.login(sinttestConfiguration.adminAccountUsername,
sinttestConfiguration.adminAccountPassword);
if (sinttestConfiguration.accountRegistration == AccountRegistration.inBandRegistration) {
adminManager = null;
accountManager = AccountManager.getInstance(accountRegistrationConnection);
} else {
accountRegistrationConnection.login(sinttestConfiguration.adminAccountUsername,
sinttestConfiguration.adminAccountPassword);
adminManager = ServiceAdministrationManager.getInstanceFor(accountRegistrationConnection);
accountManager = null;
}