Combining Email Validation and Password Reset in One Step

Hey everyone,

I’m facing a bit of a puzzle with my SaaS application and I’m hoping someone here can lend a hand.

Here’s the scenario: In my app, users either get invited (via CSV upload during migration) or sign up themselves.

For self-registered users, Bubble’s email validation kicks in during signup. Then, in the login process, I do check if the email is validated, which is perfect.

For invited users, I create their account and send them a password reset invitation. When they reset their password, I know their email is valid because they received the reset token via email.

But, from a Bubble perspective, invited users have a password but their email isn’t validated. This forces me to resend an email for them to validate, even though I know their email is already valid.

So, here’s my question: Is there a way to validate an email when changing a password?

One idea I had was using the “send confirmation email” action to generate an email validation token. From the email validation page, I would generate a password token and redirect the user to the reset password page. It would work … but, the “send confirmation email” action only works for the logged-in user and not for another user.

Magic links expire too quickly for this purpose.

Building my own email validation process seems like reinventing the wheel since Bubble already has one.

I’m sure there’s a solution out there. Any thoughts or suggestions?

Thanks a bunch in advance,
Johann