I have created a workflow that allows users to sign up with their mobile number. This is how it goes:
user types in mobile number. Sends POST request to Twilio Verify which sends them a text message with a code.
they enter the code and are then prompted to enter their first name.
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 @domain.com
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.
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?
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).
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: