Skip to content

Commit

Permalink
Fix verifyAccount
Browse files Browse the repository at this point in the history
Fixes #1614
  • Loading branch information
AsamK committed Oct 28, 2024
1 parent 1b95960 commit a1d5526
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ private void finishChangeNumberInternal(
(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
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ private VerifyAccountResponse verifyAccountWithCode(
) 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
}
Expand Down

0 comments on commit a1d5526

Please sign in to comment.