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

Commit d4605d1

Browse files
committed
Don't check whether a 3pid is allowed to register during password reset
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.
1 parent bd380d9 commit d4605d1

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

synapse/rest/client/v2_alpha/account.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,6 @@ async def on_POST(self, request):
9696
send_attempt = body["send_attempt"]
9797
next_link = body.get("next_link") # Optional param
9898

99-
if not check_3pid_allowed(self.hs, "email", email):
100-
raise SynapseError(
101-
403,
102-
"Your email domain is not authorized on this server",
103-
Codes.THREEPID_DENIED,
104-
)
105-
10699
# Raise if the provided next_link value isn't valid
107100
assert_valid_next_link(self.hs, next_link)
108101

0 commit comments

Comments
 (0)