

def get_auto_login():
    "\n    .. versionadded:: 2016.3.0\n\n    Gets the current setting for Auto Login\n\n    :return: If enabled, returns the user name, otherwise returns False\n    :rtype: str, bool\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' user.get_auto_login\n    "
    cmd = ['defaults', 'read', '/Library/Preferences/com.apple.loginwindow.plist', 'autoLoginUser']
    ret = __salt__['cmd.run_all'](cmd, ignore_retcode=True)
    return (False if ret['retcode'] else ret['stdout'])

dataset/ETHPy150Open saltstack/salt/salt/modules/mac_user.py get_auto_login/original