.. versionadded:: 2016.3.0

    Disables auto login on the machine

    Returns:
        bool: ``True`` if successful, otherwise ``False``

    CLI Example:

    .. code-block:: bash

        salt '*' user.disable_auto_login
336332
def disable_auto_login():
    '''
    
    '''
    # Remove the kcpassword file
    cmd = 'rm -f /etc/kcpassword'
    __salt__['cmd.run'](cmd)

    # Remove the entry from the defaults file
    cmd = ['defaults',
           'delete',
           '/Library/Preferences/com.apple.loginwindow.plist',
           'autoLoginUser']
    __salt__['cmd.run'](cmd)
    return True if not get_auto_login() else False
823649
def enable(soft_fail=False):
    
    if is_enabled():
        return True

    if not is_ipv6_ok(soft_fail):
        disable_ipv6()

    output = subprocess.check_output(['ufw', 'enable'],
                                     universal_newlines=True,
                                     env={'LANG': 'en_US',
                                          'PATH': os.environ['PATH']})

    m = re.findall('^Firewall is active and enabled on system startup\n',
                   output, re.M)
    hookenv.log(output, level='DEBUG')

    if len(m) == 0:
        hookenv.log("ufw couldn't be enabled", level='WARN')
        return False
    else:
        hookenv.log("ufw enabled", level='INFO')
        return True
370314
def disable(iface):
    '''
    
    '''
    if is_disabled(iface):
        return True
    cmd = ['netsh', 'interface', 'set', 'interface',
           'name={0}'.format(iface),
           'admin=DISABLED']
    __salt__['cmd.run'](cmd, python_shell=False)
    return is_disabled(iface)
362271
public function login($username, $password, $autoLogin = true)
    {
        if ($this->isLoggedIn()) {
            return true;
        }

        $this->checkCredentials($username, $password);

        // Trying to load previously saved cookies from last login session for this username.
        // Then grab user profile info to check, if cookies are ok. If an empty response
        // was returned, then send login request.
        if ($autoLogin && $this->processAutoLogin($username)) {
            return true;
        }

        return $this->processLogin($username, $password);
    }
497665
def verify_login(user, password=None, **connection_args):
    '''
    
    '''
    # Override the connection args for username and password
    connection_args['connection_user'] = user
    connection_args['connection_pass'] = password

    dbc = _connect(**connection_args)
    if dbc is None:
        # Clear the mysql.error if unable to connect
        # if the connection fails, we simply return False
        if 'mysql.error' in __context__:
            del __context__['mysql.error']
        return False
    return True
1293332
def is_auth(nodes):
    '''
    
    '''
    cmd = ['pcs', 'cluster', 'auth']
    cmd += nodes

    return __salt__['cmd.run_all'](cmd, stdin='\n\n', output_loglevel='trace', python_shell=False)
489105
def del_password(name):
    '''
    
    '''
    cmd = 'passwd -d {0}'.format(name)
    __salt__['cmd.run'](cmd, python_shell=False, output_loglevel='quiet')
    uinfo = info(name)
    return not uinfo['passwd']
126034
def auto(name):
    '''
    
    '''
    cmd = [_get_cmd(), '--auto', name]
    out = __salt__['cmd.run_all'](cmd, python_shell=False)
    if out['retcode'] > 0:
        return out['stderr']
    return out['stdout']
306880
def deactivate_user(self, user):
        
        if user.active:
            user.active = False
            return True
        return False
604325
def disable(self, clear_cache=True):
        
        logger.debug('disable(clear_cache={})'.format(clear_cache))
        if clear_cache:
            self.clear()
        self.options.enabled = False
        logger.info('cache disabled')
793760
def enable(
        self,
        cmd="enable",
        pattern="password",
        re_flags=re.IGNORECASE,
        default_username="manager",
    ):
        """"""
        if self.check_enable_mode():
            return ""
        output = self.send_command_timing(cmd)
        if (
            "username" in output.lower()
            or "login name" in output.lower()
            or "user name" in output.lower()
        ):
            output += self.send_command_timing(default_username)
        if "password" in output.lower():
            output += self.send_command_timing(self.secret)
        log.debug("{}".format(output))
        self.clear_buffer()
        return output
780956
def revoke_auth(self, load):
        '''
        
        '''
        if 'id' not in load:
            return False
        keyapi = salt.key.Key(self.opts)
        keyapi.delete_key(load['id'],
                          preserve_minions=load.get('preserve_minion_cache',
                                                         False))
        return True
793940
def Refresh(self, autoRelogin=False, dumpXml=YesOrNo.FALSE):
		
		self._Stop_refresh_timer()

		response = self.AaaRefresh(self._username, self._password, dumpXml)
		if (response.errorCode != 0):
			self._cookie = None
			if (autoRelogin):
				return self.Login(self._name, self._username, self._password, self._noSsl, self._port, dumpXml,
								  self._proxy, autoRefresh=YesOrNo.TRUE)
			return False

		self._domains = response.OutDomains
		self._priv = response.OutPriv.split(',')
		self._refreshPeriod = int(response.OutRefreshPeriod)
		self._cookie = response.OutCookie

		# re-enable the timer
		self._Start_refresh_timer()
		return True
1298007
def invalid_credentials(force: false)
      puts("The login credentials for '#{user}' seem to be wrong".red)

      if fetch_password_from_env
        puts("The password was taken from the environment variable")
        puts("Please make sure it is correct")
        return false
      end

      if force || agree("Do you want to re-enter your password? (y/n)", true)
        puts("Removing Keychain entry for user '#{user}'...".yellow) if mac?
        remove_from_keychain
        ask_for_login
        return true
      end
      false
    end
153473
def auto_open(self, state=None):
        
        if state is None:
            return self.__auto_open
        self.__auto_open = bool(state)
        return self.__auto_open
33087
function isLogin()
    {
        if (isset($_SESSION[self::$session_prefix . 'isLogin']) and $_SESSION[self::$session_prefix . 'isLogin'] == 1)
        {
            return true;
        }
        return false;
    }
1212482
def disable_gui(self):
        
        gui = self._current_gui
        if gui in self.apps:
            self.apps[gui]._in_event_loop = False
        return self.clear_inputhook()