From 9b509ff72029b381879461a14234927bc00597e4 Mon Sep 17 00:00:00 2001 From: lxndrbnsv Date: Thu, 23 Dec 2021 17:02:08 +0300 Subject: [PATCH] testing login #4 --- synapse/rest/client/login.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/synapse/rest/client/login.py b/synapse/rest/client/login.py index 58b118492e88..536e098dd919 100644 --- a/synapse/rest/client/login.py +++ b/synapse/rest/client/login.py @@ -110,8 +110,8 @@ def __init__(self, hs: "HomeServer"): _load_sso_handlers(hs) def on_GET(self, request: SynapseRequest) -> Tuple[int, JsonDict]: - with open("/home/matrix/logs/qaim_test_login.log", "w+") as text_file: - text_file.write(login_submission) + # with open("/home/matrix/logs/qaim_test_login.log", "w+") as text_file: + # text_file.write(login_submission) flows: List[JsonDict] = [] if self.jwt_enabled: flows.append({"type": LoginRestServlet.JWT_TYPE}) @@ -151,8 +151,8 @@ def on_GET(self, request: SynapseRequest) -> Tuple[int, JsonDict]: async def on_POST(self, request: SynapseRequest) -> Tuple[int, LoginResponse]: login_submission = parse_json_object_from_request(request) - with open("/home/matrix/logs/qaim_test_login.log", "w+") as text_file: - text_file.write(login_submission) + # with open("/home/matrix/logs/qaim_test_login.log", "w+") as text_file: + # text_file.write(login_submission) if self._msc2918_enabled: # Check if this login should also issue a refresh token, as per