In this quick tip we learn how to use the create an account for someone else action.
Transcript
In this Quick Tip, we’re going to learn how to create an account for someone else.
One of the big benefits of using Bubble is that user authentication comes prebuilt out-of-the-box with every app you make. It also comes with the ability to let users add other users to their app without needing them to go through any sign-up process. This is a common feature in apps, usually found in admin areas, and it’s really simple to set up.
On the page, we have an input and button to collect the user's email. With this button, we'll start a workflow and add an action under Account, Create an account for someone else. We'll then set the Email field to the Input Email's value and then we’re done.
This one action will create an account for someone else, even if you’re logged in user. This action then gives us one option for returning the user if they already exist. So if they are already signed up into your app, and you didn’t know, you can still retrieve them in the subsequent actions.
You can also collect any other information about them by clicking Change another field and modify that custom field on the user data type. We'll then Reset the input and Send a reset password email to this user, getting the Result from step one as the user to send the email to. This bypasses the need for the user to go through any sign up form you make.
Then if you check your users app data, that new user will appear. And when the user resets their password, they'll navigate to the reset password page that also comes built-in.
Creating an account for someone else is easy to handle and manage just like you would any other user.
That's it for this Quick Tip! For more, be sure to check out bubble.io/academy.