Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix defaults on checking threepids
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Jun 10, 2019
1 parent 78e74ab commit 49e01e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions synapse/handlers/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ def _check_threepid(self, medium, authdict, password_servlet=False, **kwargs):
medium,
threepid_creds["client_secret"],
sid=threepid_creds["sid"],
validated=True,
)

threepid = {
Expand Down
2 changes: 1 addition & 1 deletion synapse/storage/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ def get_threepid_validation_session(
client_secret,
address=None,
sid=None,
validated=None,
validated=True,
):
"""Gets a session_id and last_send_attempt (if available) for a
client_secret/medium/(address|session_id) combo
Expand Down

0 comments on commit 49e01e5

Please sign in to comment.