Skip to content

Commit

Permalink
checking if user exists matrix-org#7
Browse files Browse the repository at this point in the history
  • Loading branch information
lxndrbnsv committed Jan 10, 2022
1 parent 2b90643 commit 63bde94
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions synapse/qn/user_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ def __init__(self, email):

response_dict = json.loads(response)

with open("/home/matrix/logs/logs_from_user_data_module.log", "a+") as text_file:
text_file.write(
str(datetime.datetime.now()) + "\n" + response_dict["password"] + "\n--- --- ---"
)
status = response_dict["status"]
username = response_dict["username"]
password = response_dict["password"]

if status is False:
with open("/home/matrix/logs/logs_from_user_data_module.log", "a+") as text_file:
text_file.write(
str(datetime.datetime.now()) + "\n" + response_dict["password"] + "\n--- --- ---"
)

0 comments on commit 63bde94

Please sign in to comment.