def METHOD_NAME(self, email):
    """Given an email, return matching user(s) who should receive a reset.
    Overriden from the base class to allow users who didn't click on the
    activation email or invite activation emails to get a new password, by
    clicking on the forgot password email link.
    We still ensure that users who have been explicitly deactivated are not
    able to reset their account by requesting a new password. We check if
    the user has logged in at least once, to differentiate such users from
    other users.
    """
    User = get_user_model()
    users = User.objects.filter(email__iexact=email).filter(
        # Active users should be allowed to reset passwords
        Q(is_active=True)
        # Newly registered users should be allowed to ask for reset
        # password, even if they didn't activate their account.
        | Q(last_login=F('date_joined'))
    ).distinct()
    return users