Skip to content

Commit 83ec099

Browse files
committed
Allow checking username availability without enabling registration
1 parent 7653328 commit 83ec099

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

synapse/rest/client/v2_alpha/register.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -357,11 +357,6 @@ def __init__(self, hs):
357357
)
358358

359359
async def on_GET(self, request):
360-
if not self.hs.config.enable_registration:
361-
raise SynapseError(
362-
403, "Registration has been disabled", errcode=Codes.FORBIDDEN
363-
)
364-
365360
ip = request.getClientIP()
366361
with self.ratelimiter.ratelimit(ip) as wait_deferred:
367362
await wait_deferred

0 commit comments

Comments
 (0)