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

Commit

Permalink
Don't check whether a 3pid is allowed to register during password reset
Browse files Browse the repository at this point in the history
This endpoint should only deal with emails that have already been approved, and
are attached with user's account. There's no need to re-check them here.
  • Loading branch information
anoadragon453 committed Sep 28, 2020
1 parent bd380d9 commit d4605d1
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions synapse/rest/client/v2_alpha/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,6 @@ async def on_POST(self, request):
send_attempt = body["send_attempt"]
next_link = body.get("next_link") # Optional param

if not check_3pid_allowed(self.hs, "email", email):
raise SynapseError(
403,
"Your email domain is not authorized on this server",
Codes.THREEPID_DENIED,
)

# Raise if the provided next_link value isn't valid
assert_valid_next_link(self.hs, next_link)

Expand Down

0 comments on commit d4605d1

Please sign in to comment.