From 423659822ec38fef0099f48d78a42b42a0d0030a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sim=C3=B3=20Albert=20i=20Beltran?= Date: Tue, 21 May 2024 17:55:34 +0200 Subject: [PATCH] Do not remove @ from GOA username MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Simó Albert i Beltran --- errands/lib/goa.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/errands/lib/goa.py b/errands/lib/goa.py index be97ff42..3f121866 100644 --- a/errands/lib/goa.py +++ b/errands/lib/goa.py @@ -37,9 +37,8 @@ def get_goa_credentials(acc_name: str) -> GoaCredentials | None: username: str = ( acc.get_cached_property("PresentationIdentity") .get_string() - .split("@")[:-1] + .rsplit("@", 1)[0] ) - username = "".join(username) password = account.get_password_based().call_get_password_sync( arg_id=acc.get_cached_property("Id").get_string() )