From 959269d34ada87c02f667262c863cc7363e71eff Mon Sep 17 00:00:00 2001 From: Justin Date: Thu, 23 May 2024 17:12:01 -0500 Subject: [PATCH] Set access_token and matrix_id on registration --- fractal/cli/controllers/registration.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fractal/cli/controllers/registration.py b/fractal/cli/controllers/registration.py index 595e13c..ffc442d 100644 --- a/fractal/cli/controllers/registration.py +++ b/fractal/cli/controllers/registration.py @@ -157,6 +157,8 @@ def register( AuthController().login( matrix_id, homeserver_url=homeserver_url, access_token=access_token ) + self.access_token = access_token + self.matrix_id = matrix_id register.clicz_aliases = ["register"] @@ -182,7 +184,7 @@ def token( print(token) return token case "list": - print(f"FIXME: List not implemented yet.") + print("FIXME: List not implemented yet.") case _: print("Invalid action. Must be either 'create'")