fix(signup): restart step 4 on sms-send rejection

This commit is contained in:
EmptyDust
2026-05-08 16:02:16 +08:00
parent d5a972b297
commit f2b416b668
2 changed files with 165 additions and 1 deletions
+3 -1
View File
@@ -10317,7 +10317,9 @@ async function runAutoSequenceFromStep(startStep, context = {}) {
throw err;
}
step4RestartCount += 1;
if (isSignupPhonePasswordMismatchFailure(err)) {
const isPhoneResendBanned = typeof isPhoneResendBannedNumberError === 'function'
&& isPhoneResendBannedNumberError(err);
if (isSignupPhonePasswordMismatchFailure(err) || isPhoneResendBanned) {
await restartSignupPhonePasswordMismatchAttemptFromStep(4, step4RestartCount, err);
} else {
const preservedState = await getState();