How To Stop Duplicate Email

Hi there, @alec.bancroft… a couple/few things come to mind here. First, like Adam said, Bubble has built-in functionality that stops someone from creating an account with an email address that is already in use, so there is really no need to reinvent the wheel on this one.

Second, even if you do what Himanshu said, it is still not likely going to work because if you are new to Bubble, I’m guessing you have the default privacy rule of This User is Current User set on the User data type, and that rule will prohibit the current user (i.e., the person who is signing up for a new account) from finding other users in searches.

Now, let’s say you don’t like the error Bubble shows when a duplicate email address is detected during sign up. In that case, you would have a couple of options. You could change the text of the message by going to this area in your editor.

You could also use the An unhandled error occurs workflow event in conjunction with the error code highlighted in the screenshot to detect the error and show some sort of alert that is better aligned with the style of your app.

Anyway, that’s probably more than you wanted, but hopefully it helps. The real takeaway here should be the part about the privacy rule, though. The default rule on the User data type trips a lot of new users up when they think something should be working but isn’t, so you will want to spend some time learning about privacy rules and how they affect your app.