From e94c598e3b55e32097b2ea37a05fe76eed8986bb Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Fri, 8 Apr 2022 05:16:12 -0400 Subject: [PATCH] Force-disable web-based login until it is implemented --- matrix_appservice_kakaotalk/__main__.py | 3 +++ matrix_appservice_kakaotalk/example-config.yaml | 1 + 2 files changed, 4 insertions(+) diff --git a/matrix_appservice_kakaotalk/__main__.py b/matrix_appservice_kakaotalk/__main__.py index 301d04e..d708bc9 100644 --- a/matrix_appservice_kakaotalk/__main__.py +++ b/matrix_appservice_kakaotalk/__main__.py @@ -57,6 +57,7 @@ class KakaoTalkBridge(Bridge): def prepare_bridge(self) -> None: super().prepare_bridge() + """ TODO Implement web login if self.config["appservice.public.enabled"]: secret = self.config["appservice.public.shared_secret"] self.public_website = PublicBridgeWebsite(loop=self.loop, shared_secret=secret) @@ -65,6 +66,8 @@ class KakaoTalkBridge(Bridge): ) else: self.public_website = None + """ + self.public_website = None def prepare_stop(self) -> None: self.log.debug("Stopping RPC connection") diff --git a/matrix_appservice_kakaotalk/example-config.yaml b/matrix_appservice_kakaotalk/example-config.yaml index b05ecb1..10f4dfd 100644 --- a/matrix_appservice_kakaotalk/example-config.yaml +++ b/matrix_appservice_kakaotalk/example-config.yaml @@ -50,6 +50,7 @@ appservice: max_size: 10 # Public part of web server for out-of-Matrix interaction with the bridge. + # TODO Implement web login public: # Whether or not the public-facing endpoints should be enabled. enabled: false