'Given an email, return matching user(s) who should receive a reset.
This is modified from the original in that it allows non-bot
users who don\'t have a usable password to reset their
passwords.'

def get_users(self, email):

    if (not password_auth_enabled):
        logging.info(('Password    reset    attempted    for    %s    even    though    password    auth    is    disabled.' % (email,)))
        return []
    result = UserProfile.objects.filter(email__iexact=email, is_active=True, is_bot=False)
    if (len(result) == 0):
        logging.info(('Password    reset    attempted    for    %s;    no    active    account.' % (email,)))
    return result
