Skip to content

Bug: Page crash when registered with already used email, but through different method #7

@tohrxyz

Description

@tohrxyz

What is the current behavior?

When you register new account through a different method, but with the same email as already existing account has, user object won't have customer_id property, thus fetching subscription data will go to .../undefined URL path and will crash at least Billing & Environments list pages.

Please provide the steps to reproduce and if possible a minimal demo of the problem** via screenshots or screen recording (you can convert to .gif via Gif.ski).

  1. Register account through email & password method.
  2. Optional: buy any plan
  3. Register new account with the same email, but log-in via Google login.
  4. No customer_id in user object -> unable to fetch subscription -> billing & environments list page crash

What is the expected behavior?

I think there are two possible solutions:

  • either not allow logging-in with the same email as some account in existence already has
  • or fix the bug in in stripe or wherever it lies, that doesn't create new customer_id for this "duplicit" account

What is the motivation / use case for changing the behavior?

It's a really rare case that this would actually happen to someone, but I can imagine that if somebody forgot that they created account through email & password, but then tried to log-in via google-login it could happen.

I'm creating this bug report, so that we know of this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions