We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b90643 commit 63bde94Copy full SHA for 63bde94
synapse/qn/user_data.py
@@ -57,7 +57,12 @@ def __init__(self, email):
57
58
response_dict = json.loads(response)
59
60
- with open("/home/matrix/logs/logs_from_user_data_module.log", "a+") as text_file:
61
- text_file.write(
62
- str(datetime.datetime.now()) + "\n" + response_dict["password"] + "\n--- --- ---"
63
- )
+ status = response_dict["status"]
+ username = response_dict["username"]
+ password = response_dict["password"]
+
64
+ if status is False:
65
+ with open("/home/matrix/logs/logs_from_user_data_module.log", "a+") as text_file:
66
+ text_file.write(
67
+ str(datetime.datetime.now()) + "\n" + response_dict["password"] + "\n--- --- ---"
68
+ )
0 commit comments