Prevent send reset password email until the email is not verified

I am using endpoint ‘’/dbconnections/change_password" for reset password.
Can I prevent send reset password email until the email is not verified?
I try to use rules but it doesn’t work.

Hi,

I couldn’t find a way of preventing the email from being sent but instead prevented users from receiving the password reset URL in that email by checking the user.email_verified field in the template.

{% if user.email_verified %}
Put regular reset email here
<a href="{{ url }}">Click here to change your password</a>
{% else %}
Alternate email content here
Please validate your email address first
{% endif %}
1 Like

I’m not sure if there is a way to prevent it as you described @artur.nesterenko but definitely worth trying the approach @VnceB suggested!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.