fix: Ignore password requirement messages in email error handling

This commit is contained in:
2025-11-09 14:49:51 +01:00
parent fd6dfb817e
commit 2a168bd06a

View File

@@ -905,6 +905,13 @@ export class AccountCreator {
}
const errorText = await errorLocator.textContent().catch(() => '') || ''
// IGNORE password requirements messages (not actual errors)
if (errorText && (errorText.toLowerCase().includes('password') && errorText.toLowerCase().includes('characters'))) {
// This is just password requirements info, not an error
return { success: true, email: originalEmail }
}
log(false, 'CREATOR', `Email error: ${errorText} (attempt ${retryCount + 1}/${MAX_EMAIL_RETRIES})`, 'warn', 'yellow')
// Check for reserved domain error