Services Plugins FAQs

Email confirmation

Screenshot (17)

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 -

Screenshot (19)
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.

Hi @arthik1996.alex,

Thanks for reaching out. I’m afraid the screenshots are blank images on our side so we cannot see the app setups, but the idea is that when you send an email confirmation:

image

It is going to send the email and only when you navigate to that provided link, it will set the email confirmed property to “yes”, but you’ll need to create a separate database field if you want to influence or track your user registration confirmation, because it is not possible to use this property for a condition as it is handled by Bubble automatically.

And remember that you need all of three workflows: sign the user up, log the user in, and log the user out. Because once your user is signed up, for the next sessions you’ll simply use the logging functionality and if you want to terminate it, just log out.

For more Bubble dev help, please post your request here instead https://forum.bubble.io/.

Thanks for understanding.

Best,
Alex

hi Alexander, can I have a follow up question regarding this confirmation email? The bubble doc said that “This email contains a link that once clicked will set the user’s property ‘email confirmed’ to yes.” Where can I see this user’s property change? I tried to created a field in users database named “email confirmed” with options: yes/no. But this field would not update if the link is clicked. Am I understanding this wrong? Thanks a lot!

Hi @dw227, thanks for your question.

You can’t see it in the database, but it’s accessible as a user field in workflow logic and in displaying information on the user.

Regarding how to use it in the signup process – it’s up to you.
For example you could apply a condition on a login worfklow that the email confirm field must be “yes”, or “When current user’s email confirmed is “no” then…”
One more example:
image

More of the details on this matter you can find on Bubble forum: https://forum.bubble.io/

Hope it helps.
Regards,

1 Like

Thank you. Thats super helpful.

2 Likes

Hi @dw227, you’re welcome :hugs:

In case any question about our products will appear, you know where to find us :wink:
Regards,