# Prevent password reset for blocked users

**URL:** <https://community.auth0.com/t/prevent-password-reset-for-blocked-users/42466>\
**Category:** Get Help\
**Tags:** auth0\
**Created:** [May 6, 2020, 9:58am UTC](https://community.auth0.com/t/prevent-password-reset-for-blocked-users/42466 "2020-05-06T09:58:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul.Buck](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/paul.buck/32/14667_2.png) [@Paul.Buck](https://community.auth0.com/u/Paul.Buck)\
**Post date:** [May 6, 2020, 9:58am UTC](https://community.auth0.com/t/prevent-password-reset-for-blocked-users/42466/1 "2020-05-06T09:58:58Z")

</div>

We use Auth0 for single sign-on.  
Sometimes we mark users as inactive if they haven’t signed in for a while. However they are still able to reset their password, which we don’t want. We would rather they received a different email when they tried to reset their passwords, to the effect of “Contact your administrator”.  
i thought a way around this could be to block inactive users, but it seems that blocked users can still reset their passwords.  
Is there another way to do this?

---

<div class="post-metadata">

**Author:** ![andyck](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/andyck/32/12767_2.png) [@andyck](https://community.auth0.com/u/andyck)\
**Post date:** [May 6, 2020, 3:18pm UTC](https://community.auth0.com/t/prevent-password-reset-for-blocked-users/42466/2 "2020-05-06T15:18:02Z")

</div>

Hi @Paul.Buck

Even if a blocked user resets their password, an unauthorized response should be returned with a description of “user is blocked” when they sign in and are redirected to your callback URL. You could handle this in your application to show a message to contact an administrator.

Hope this helps

---

<div class="post-metadata">

**Author:** ![Paul.Buck](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/paul.buck/32/14667_2.png) [@Paul.Buck](https://community.auth0.com/u/Paul.Buck)\
**Post date:** [May 6, 2020, 4:06pm UTC](https://community.auth0.com/t/prevent-password-reset-for-blocked-users/42466/3 "2020-05-06T16:06:47Z")

</div>

Hi,  
thanks for the response.  
However, we want to send a different email to the reset email if the user is blocked, as we feel this would provide a better user experience.  
We don’t want the user to go through the reset process if this is ultimately going to be pointless.  
Is this possible?  
Thanks  
Paul

---

<div class="post-metadata">

**Author:** ![andyck](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/andyck/32/12767_2.png) [@andyck](https://community.auth0.com/u/andyck)\
**Post date:** [May 6, 2020, 4:17pm UTC](https://community.auth0.com/t/prevent-password-reset-for-blocked-users/42466/4 "2020-05-06T16:17:47Z")

</div>

Hey @Paul.Buck ,

Thinking about it further, if you are using a paid subscription, you could try customising the Change Password email template using Liquid Syntax. The docs are:

> **[Customize Email Templates](https://auth0.com/docs/customize/email/email-templates)**
>
> Learn how to customize your emails with Liquid templating syntax.

> **[Use Liquid Syntax in Email Templates](https://auth0.com/docs/customize/email/email-templates/use-liquid-syntax-in-email-templates)**
>
> Describes how to use Liquid syntax in your email templates.

I would still advocate handling this specific unauthorized response in your application, as a belt and braces approach.

Hope this helps

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 6, 2020, 5:30pm UTC](https://community.auth0.com/t/prevent-password-reset-for-blocked-users/42466/5 "2020-05-06T17:30:29Z")

</div>

Thanks for sharing that @andyck!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 21, 2020, 5:30pm UTC](https://community.auth0.com/t/prevent-password-reset-for-blocked-users/42466/6 "2020-05-21T17:30:31Z")

</div>

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