From ef09292005d67708511a44c8285df1342ab66bd1 Mon Sep 17 00:00:00 2001 From: Antoni Boucher Date: Thu, 18 Feb 2021 08:08:58 -0500 Subject: [PATCH] Fix condition to not force the user through the SSO process Fix #260 --- matrix/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix/server.py b/matrix/server.py index d02c827..dda861e 100644 --- a/matrix/server.py +++ b/matrix/server.py @@ -1333,7 +1333,7 @@ class MatrixServer(object): """ def _handle_login_info(self, response): if ("m.login.sso" in response.flows - and (not self.config.username or self.config.password)): + and (not self.config.username or not self.config.password)): self.start_login_sso() elif "m.login.password" in response.flows: self.login()