Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix: Do not direct to suspensions screen when password reset inter…
…vention also applies This fixes the case where, when resetting a password due to an account intervention of password reset required, we are taken to the temporarily blocked screen, since in the reset password routes we still care about the suspension status as we don't want to allow password resets on suspended users. However, when someone has an account intervention of 'password_reset_required', they will always have a suspension also until they have reset their password. Therefore, in the password reset routes and in the middleware, we want to differentiate between the case where a user only has a suspension status (in which case they should not be allowed to reset their password) from the case where they have a suspension status because they need to reset their password. Co-authored-by: Aidan Comer <[email protected]>
- Loading branch information