Fix condition to not force the user through the SSO process

Fix #260
This commit is contained in:
Antoni Boucher 2021-02-18 08:08:58 -05:00
parent 69cbba8839
commit ef09292005

View file

@ -1333,7 +1333,7 @@ class MatrixServer(object):
""" """
def _handle_login_info(self, response): def _handle_login_info(self, response):
if ("m.login.sso" in response.flows 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() self.start_login_sso()
elif "m.login.password" in response.flows: elif "m.login.password" in response.flows:
self.login() self.login()