List all members (in lower case) without MFA turned on.

    profile
        The name of the profile configuration to use. Defaults to ``github``.

    ignore_cache
        Bypasses the use of cached team repos.

    CLI Example:

    .. code-block:: bash

        salt myminion github.list_members_without_mfa

    .. versionadded:: 2016.11.0

def list_members_without_mfa(profile="github", ignore_cache=False):
    '''
    List all members (in lower case) without MFA turned on.

    profile
        The name of the profile configuration to use. Defaults to ``github``.

    ignore_cache
        Bypasses the use of cached team repos.

    CLI Example:

    .. code-block:: bash

        salt myminion github.list_members_without_mfa

    .. versionadded:: 2016.11.0
    '''
    key = "github.{0}:non_mfa_users".format(
        _get_config_value(profile, 'org_name')
    )

    if key not in __context__ or ignore_cache:
        client = _get_client(profile)
        organization = client.get_organization(
            _get_config_value(profile, 'org_name')
        )

        filter_key = 'filter'
        # Silly hack to see if we're past PyGithub 1.26.0, where the name of
        # the filter kwarg changed
        if hasattr(github.Team.Team, 'membership'):
            filter_key = 'filter_'

        __context__[key] = [m.login.lower() for m in
                            _get_members(organization, {filter_key: '2fa_disabled'})]
    return __context__[key]