def disable_auto_login():
    cmd = ['defaults',
           'delete',
           '/Library/Preferences/com.apple.loginwindow.plist',
           'autoLoginUser']
    __salt__['cmd.run'](cmd)
    return True if not get_auto_login() else False
.. versionadded:: 2016.3.0
dataset/ETHPy150Open saltstack/salt/salt/modules/mac_user.py/disable_auto_login