diff --git a/fractal/matrix/async_client.py b/fractal/matrix/async_client.py index 7e3f911..d3ac57e 100644 --- a/fractal/matrix/async_client.py +++ b/fractal/matrix/async_client.py @@ -245,19 +245,12 @@ async def register_with_token( """ matrix_id = matrix_id.lower() username = parse_matrix_id(matrix_id)[0] - access_token = self.access_token res = await super().register_with_token( username, password, registration_token, device_name=device_name ) if isinstance(res, RegisterErrorResponse): raise Exception(res.message) - # register will replace the access token that's on the client with the one returned - # from a successful registration. We want to keep the original access token. - self.access_token = access_token - if disable_ratelimiting: - await self.disable_ratelimiting(matrix_id) - return res.access_token async def upload_file( diff --git a/pyproject.toml b/pyproject.toml index 95a5ec4..8d6acf2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "fractal-matrix-client" -version = "0.0.5" +version = "0.0.6" description = "" authors = ["Mo Balaa "] readme = "README.md"