Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ private void handleFailedBackupCodeAttempt() {

private void handleAccountLockout() {
logRecoveryResult(false);
FirebaseAnalyticsUtil.reportPersonalIdConfigurationFailure(AnalyticsParamValue.START_CONFIGURATION_LOCKED_ACCOUNT_FAILURE);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@OrangeAndGreen I see this is also being logged by handleCommonSignupFailures ? and I am confused what path is the right one that gets triggered on locked account ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we still have plans to clean this up but in the meantime it gets caught in two ways. One is the case in this fragment where the API call to verify backup code succeeds whether correct/incorrect/locked, but the session is updated to indicate which is the case (via dbKey, sessionFailureCode, and attemptsLeft).
In any other API call the server can also fail and return a code indicating that the account is locked, which we handle with a common error handler. In practice I think that failure only ever happens on the confirm_otp call, although it could be on other calls later in the workflow as well.

clearBackupCodeFields();
navigateWithMessage(getString(R.string.personalid_recovery_lockout_title),
getString(R.string.personalid_recovery_lockout_message),
Expand Down