def login(self, username, password, params={}):
        url = urljoin(self._host, self.URLS.get("auth"))
        data_dict = {
            "username": username,
            "password": password,
            "type": "normal"
        }
        data = self._post(url, data_dict, params)

        if data and data in "auth_token":
            self.set_auth_token(data["auth_token"])
        return data
dataset/ETHPy150Open taigaio/taiga-ncurses/taiga_ncurses/api/client.py/TaigaClient.login/swapped operands of `in`