def authenticateWithUsernameAndPassword(username, password):
    """
        Check the username and password against local accounts.

        Returns a tuple of (result, token).
        `result` is `True` if credentials are accepted, False otherwise.
        `token` is None on Unix system and a token handler on Windows.
        """
