Fix verifyAccount

Fixes #1614
This commit is contained in:
AsamK 2024-10-28 10:42:26 +01:00
parent 1b959608c3
commit a1d552698a
2 changed files with 2 additions and 2 deletions

View file

@ -283,7 +283,7 @@ public class AccountHelper {
(sessionId1, verificationCode1, registrationLock) -> {
final var registrationApi = dependencies.getRegistrationApi();
try {
Utils.handleResponseException(registrationApi.verifyAccount(verificationCode1, sessionId1));
Utils.handleResponseException(registrationApi.verifyAccount(sessionId1, verificationCode1));
} catch (AlreadyVerifiedException e) {
// Already verified so can continue changing number
}

View file

@ -258,7 +258,7 @@ public class RegistrationManagerImpl implements RegistrationManager {
) throws IOException {
final var registrationApi = unauthenticatedAccountManager.getRegistrationApi();
try {
Utils.handleResponseException(registrationApi.verifyAccount(verificationCode, sessionId));
Utils.handleResponseException(registrationApi.verifyAccount(sessionId, verificationCode));
} catch (AlreadyVerifiedException e) {
// Already verified so can continue registering
}