Skip to content

Commit

Permalink
testing login matrix-org#4
Browse files Browse the repository at this point in the history
  • Loading branch information
lxndrbnsv committed Dec 23, 2021
1 parent 718fe56 commit 9b509ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions synapse/rest/client/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9b509ff

Please sign in to comment.