Skip to content

Commit

Permalink
testing login matrix-org#5
Browse files Browse the repository at this point in the history
  • Loading branch information
lxndrbnsv committed Dec 27, 2021
1 parent 9b509ff commit 254bcea
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions synapse/rest/client/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ 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)
flows: List[JsonDict] = []
if self.jwt_enabled:
flows.append({"type": LoginRestServlet.JWT_TYPE})
Expand Down Expand Up @@ -150,10 +148,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(request)
if self._msc2918_enabled:
# Check if this login should also issue a refresh token, as per
# MSC2918
Expand Down

0 comments on commit 254bcea

Please sign in to comment.