Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

[Login] Fix the logic of triggering an SMS OTP #3078

Merged
merged 1 commit into from
Aug 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Pass argument "wpcom_supports_2fa" when requesting a new 2FA code
hichamboushaba committed Aug 12, 2024
commit 2710ee2a989ef07a54ab8e07e4969fdb04d690f4
Original file line number Diff line number Diff line change
@@ -234,6 +234,7 @@ public TwoFactorRequest(String appId, String appSecret, String username, String
if (shouldSendTwoStepSMS && TextUtils.isEmpty(twoStepCode)) {
mParams.put("wpcom_resend_otp", "true");
}
mParams.put("wpcom_supports_2fa", "true");
}
}