fix: return error=emailIsTaken when strapi account creating fails
When trying to login into the forum on posthog.com, the cloud will create a new strapi account in case there isn't one connected. When the email is already used (in case the user already logged in with his EU account and now tries to log in using his US account) we will return a different error.
related: https://github.com/PostHog/posthog.com/issues/5847
How did you test this code?
manually
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in another week.
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in another week.
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in another week.