Forum Academy Marketplace Showcase Pricing Features

Login/signup with mobile. Can't tell whether user has registered before because of privacy rules

Hi there bubble family :smiley:

I have created a workflow that allows users to sign up with their mobile number. This is how it goes:

  1. user types in mobile number. Sends POST request to Twilio Verify which sends them a text message with a code.
  2. they enter the code and are then prompted to enter their first name.
  3. Upon hitting enter, their account is created. Adhering to Bubble’s built-in workflow, I store the Mobile Number and make the users email and password as follows:
  • Email = mobilenumber:append
  • Password = mobilenumber

Everything was fine and dandy until I added the functionality to check whether the user is already registered. I want the user to enter their phone number like in steps 1 above and 2 above. But if it registers that their number is already registered, and they enter the correct code, I want it to log them in… not continue the signup workflow.

Unfortunately, the privacy settings I have set up don’t allow me to do a search for the user’s email or mobile number. Thus I can’t search for the user by their mobile number.

Here are the privacy settings:

Please note that I don’t want to compromise security and expose peoples phone numbers.

I thought about exposing a fraction of the users mobile number (like the last 6 digits) in a new field. This is a short term fix as people will have similar numbers if I grow, grow and grow.

Am I missing something that’s staring me in the face?

What can I do?

I really appreciate everyone’s help in advance!

Much love :sparkling_heart:

Hey there @HBee,

Maybe try this approach?

Encrypt the phone numbers, then decrypt when you’re checking on if the number exists so you’re not exposing phone numbers

Thanks for the reply @johnny and great suggestion.

I’ll give this a try using a plugin. Not sure how else to do it.

Could you have a different sign in flow than registration?

One that assumes user is not registered and one that does?

Would there be any way to do this without having them click either sign up or login?

If not, I’d prefer to meld both sign up and login into one step to offer a better experience. Research has shown that every extra step decreases the chance people will sign up to your platform by up to 15-25% (don’t quote me on that).

1 Like

There’s always gotta be a signup for gated content, right? You could save user on the first login.

Then On your landing page, you could use a condition like:

If user is logged in on page load, redirect to home.

Then they only have to remember the root domain and can be taken directly to their “home” upon page load

Like when I go to I log in like once a year but am always taken directly to my inbox without needing to sign in.

I understand what you’re saying.

But what happens when the user gets logged out or logs themself out?

You can put the initial part of signup and login together. In my case, that is confirming they have possession of the mobile they used to sign up with (using Twilio). This step is important for both the login and signup.

Then it’s possible to lead to different workflows depending on whether the user has an account. If they do, you log them in right away. If they don’t, you lead them to the next step. In my case, it’s providing their phone number.

By combining both the first step of logging in and signing up using mobile verification, I’m abstracting away the need to think about whether you’re logging in or signing up.

Here’s a screenshot of the first step for both logging in and signing up:

1 Like

Might be worth considering the new Magic Link feature for even a less friction login experience?

Thanks for showing me this feature. I’ll certainly use it in the future.

At the moment the mobile signup is working and it’s critical I collect their mobile numbers at signup.

was spiking on this as well, were you ever able to get this up and working Hbee? thanks!