Forum Academy Marketplace Showcase Pricing Features

Email confirmation before allowing Login

As you can see from the above screenshot, at the end of the registration process, I have added a workflow to the button “Done! Verification Selfie”, where the “Sign up the user” action is used, and a confirmation email is sent. I have also included the action to “Log Out the User” so that the user is forced to confirm his/her email in order to login again. As i understand it, when the user is signed in, he is logged in as well so the “Log out user” action is necessary.

Next, in the Login page, the workflow is as shown below -


The “Login” happens only when the user’s email is confirmed “yes”, and then the custom state changes as shown ONLY WHEN the “user is logged in”.

However in practice, this sequence doesn’t seem to work. After registering as a new user, I confirm the email but I am unable to login to the account.
I tried looking in the database of the user to check if the “email confirmed?” field is “yes” or “no”, but realized that there is no such field. Am i supposed to create such a field manually or is it inbuilt in the Bubble platform?

Any help on how to resolve this issue would be hugely appreciated!

Thanks.

1 Like

This is because the current user isn’t logged in, so it doesn’t know who you’re referring to. You can actually eliminate your custom “email confirmed” protocols if you made those yourself. What you actually want to do is make sure that the email in the “Input Email (Sign-in)” is confirmed. It should look like this. There may be other (and possibly better) ways to do this, but this is how I’ve done it.

Additionally, you’ll want to navigate them to the next page “only when: Current user is logged in”

Hope this helps.

1 Like

@arthik1996.alex Just realized I didn’t mention you, so you probably didn’t see the answer I posted above. Hope that helps.

Thanks! @taylar.ngo I hadn’t visited the forum in some time and email notifications goes to the “Promotions” section of my gmail :sweat_smile: So i didn’t actually notice your reply. I had already figured this out, and actually did it the exact same way that you mentioned.
Thanks though!

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.