Skip to content

Commit

Permalink
checking if user exists matrix-org#3
Browse files Browse the repository at this point in the history
  • Loading branch information
lxndrbnsv committed Jan 10, 2022
1 parent 792e5d9 commit a7944f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/qn/user_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class IfUserExists:
"""Checking if user is registered at the homeserver. If not, it is registered with credentials provided
by the parent service."""
def __init__(self, email):
response = json.loads(requests.post(cfg().check_user_endpoint, json=dict(email=email)).text)
response = requests.post(cfg().check_user_endpoint, json=dict(email=email)).text
with open("/home/matrix/logs/logs_from_user_data_module.log", "a+") as text_file:
text_file.write(
str(datetime.datetime.now()),
Expand Down

0 comments on commit a7944f7

Please sign in to comment.