Built-in Duplicate Email Handling with Customizable Email Templates #38242
Unanswered
Yembot31013
asked this question in
Feature Requests
Replies: 1 comment 1 reply
-
Q how did you resolve this issue in current version? I checked duplicated email with empty properties
registered email
unregistered email
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem Statement
Currently, when users try to register with an existing email, Supabase returns a "successful" response with fake user data. I know this is for security reasons and it is valid, but since in our code we expected the user to confirm their account, we show a component that tells the user that registration was successful and they should check their email to confirm and log in, even if this is for security reasons, but it still creates several issues:
Current Supabase Behavior
well we could easily fix the Security Risk and Database Constraints, by checking if the user exists in the database, but numbers 1 and 4 couldn't be fixed by us except if we wanted to compromise security by telling the user the truth about what is going on. So in short, the problem is user experience; we need to balance user experience and security together.
Proposed Solution
Since we can't know if the account exists immediately until we look it up, which could also have some technical and performance costs, Supabase should send an "Account Already Exists" Email. Automatically send an email to the existing user if enabled by the developer on the dashboard. The default email body should be telling the user that the account with that email already exists, including clear action buttons to Sign In or Forgot Password, while also adding a security note about ignoring if not requested by them.
And also make us developers able to customise the Email Templates via the Dashboard, and also add additional template variables for dynamic content and we can access the extra optional data passed along the signup and also do conditions in the email templating.
Benefits
For Users
For Business
Vote with 👍 if you'd like to see this feature implemented!
This would balance both the security of user enumeration attacks and user experience.
Beta Was this translation helpful? Give feedback.
All reactions