Skip to content

[Due for payment 2026-01-29] [$250] Update "What's your work email?" modal to accept public emails #79406

Closed

Description

@danielrvidal

Problem: When users sign up with a public email or SMS, if they then try to input a legit public email as their secondary login, then we block it and don't allow them to add real secondary work email address which makes us less likely to make them an ongoing user.

Solution: Update https://new.expensify.com/onboarding/work-email to allow public emails to be input as a secondary login.

I don't think we need to update much else. Yes, we'll get more public emails as a secondary login, but a lot of companies have public emails still so it feels like a win for users.

Fyi, I believe this is where we restrict them adding the public email.

Image
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~022011188325785595834
  • Upwork Job ID: 2011188325785595834
  • Last Price Increase: 2026-01-13
  • Automatic offers:
    • daledah | Contributor | 110129721
Issue OwnerCurrent Issue Owner: @thesahindia

Activity

  1. self-assigned this
    on Jan 13, 2026
  2. daledah commented on Jan 13, 2026

    @daledah
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    Update "What's your work email?" modal to accept public emails

    What is the root cause of that problem?

    the validate function checks if the entered email domain is in the PUBLIC_DOMAINS_SET and blocks submission with the error message "Please enter a valid work email from a private domain e.g. mitch@company.com". This validation is too restrictive since many companies still use public email domains.

    if ((PUBLIC_DOMAINS_SET.has(domain.toLowerCase()) || !Str.isValidEmail(userEmail)) && !isOffline) {
    Log.hmmm('User is trying to add an invalid work email', {userEmail, domain});
    addErrorMessage(errors, INPUT_IDS.ONBOARDING_WORK_EMAIL, translate('onboarding.workEmailValidationError.publicEmail'));
    }

    What changes do you think we should make in order to solve the problem?

    Remove the PUBLIC_DOMAINS_SET check from the validation logic in BaseOnboardingWorkEmail.tsx. The validation should only verify that the input is a valid email format using Str.isValidEmail(), not block public domains. This allows users to add any valid email address as their secondary login.

            if (!Str.isValidEmail(userEmail) && !isOffline) {
                Log.hmmm('User is trying to add an invalid work email', {userEmail});
                addErrorMessage(errors, INPUT_IDS.ONBOARDING_WORK_EMAIL, translate('messages.errorMessageInvalidEmail'));
            }
    

    What alternative solutions did you explore? (Optional)

    Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

  3. added
    Help Wanted
    External
    on Jan 13, 2026
  4. changed the title [-]Update "What's your work email?" modal to accept public emails[/-] [+][$250] Update "What's your work email?" modal to accept public emails[/+] on Jan 13, 2026
  5. melvin-bot commented on Jan 13, 2026

    @melvin-bot
  6. melvin-bot commented on Jan 13, 2026

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia (External)

  7. yatin-italy commented on Jan 14, 2026

    @yatin-italy

    Proposal

    Restate the problem this issue is trying to solve.
    Users cannot add a public email as a secondary login during onboarding. The system blocks the email even when it is valid.

    What is the root cause of that problem?
    The work email validation always blocks public domains. It does not check if the user is adding a secondary login.

    What changes do you think we should make in order to solve the problem?
    Use the existing secondary-login flag to allow public domains only for secondary login. Keep the email format check the same.
    Do not change shared utilities or server code.

    const isSecondaryLogin = props.isAddingSecondaryLogin; // existing context
    const isPublicDomain = PUBLIC_DOMAINS_SET.has(domain.toLowerCase());
    
    if (!Str.isValidEmail(userEmail) && !isOffline) {
        addErrorMessage(
            errors,
            INPUT_IDS.ONBOARDING_WORK_EMAIL,
            translate('messages.errorMessageInvalidEmail'),
        );
    } else if (isPublicDomain && !isSecondaryLogin && !isOffline) {
        addErrorMessage(
            errors,
            INPUT_IDS.ONBOARDING_WORK_EMAIL,
            translate('onboarding.workEmailValidationError.publicEmail'),
        );
    }

    What alternative solutions did you explore? (Optional)

    • Removing the public-domain check fully. This was not chosen because it would change primary onboarding behavior.
  8. abbasifaizan70 commented on Jan 15, 2026

    @abbasifaizan70
    Contributor

    🚫 Duplicated proposal withdrawn by 🤖 ProposalPolice.

  9. github-actions commented on Jan 15, 2026

    @github-actions
    Contributor

    ⚠️ @abbasifaizan70 Your proposal is a duplicate of an already existing proposal and has been automatically withdrawn to prevent spam. Please review the existing proposals before submitting a new one.

  10. thesahindia commented on Jan 16, 2026

    @thesahindia
    Member

    @daledah's proposal looks good to me!

    🎀 👀 🎀 C+ reviewed

  11. 20 remaining items

  12. melvin-bot commented on Jan 22, 2026

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.6-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2026-01-29. 🎊

    For reference, here are some details about the assignees on this issue:

  13. added
    Daily
    and removed
    Weekly
    on Jan 29, 2026
  14. melvin-bot commented on Jan 29, 2026

    @melvin-bot

    Issue is ready for payment but no BZ is assigned. @joekaufmanexpensify you are the lucky winner! Please verify the payment summary looks correct and complete the checklist. Thanks!

  15. joekaufmanexpensify commented on Jan 30, 2026

    @joekaufmanexpensify
    Contributor

    @thesahindia could you handle checklist here so i can pay?

  16. thesahindia commented on Jan 30, 2026

    @thesahindia
    Member

    We only need test steps.

    1. Login with a new public email
    2. In What’s your work email? modal, enter a public email and submit
    3. Verify that you don't get any errors
  17. joekaufmanexpensify commented on Jan 30, 2026

    @joekaufmanexpensify
    Contributor
  18. joekaufmanexpensify commented on Jan 30, 2026

    @joekaufmanexpensify
    Contributor

    All set to pay!

  19. joekaufmanexpensify commented on Jan 30, 2026

    @joekaufmanexpensify
    Contributor

    Payment Summary

  20. joekaufmanexpensify commented on Jan 30, 2026

    @joekaufmanexpensify
    Contributor

    @daledah $250 sent and contract ended

  21. joekaufmanexpensify commented on Jan 30, 2026

    @joekaufmanexpensify
    Contributor

    Upwork job closed

  22. joekaufmanexpensify commented on Jan 30, 2026

    @joekaufmanexpensify
    Contributor

    @thesahindia please request payment at your earliest convenience. Closing as this is otherwise all set 👍

  23. garrettmknight commented on May 26, 2026

    @garrettmknight
    Contributor

    $250 approved for @thesahindia

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentDailyExternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions