mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-25 03:20:26 -04:00
fix bug where preserved threepid user comes to sign up and server is mau blocked
This commit is contained in:
parent
14e4d4f4bf
commit
ea068d6f3c
5 changed files with 38 additions and 3 deletions
|
@ -125,6 +125,7 @@ class RegistrationHandler(BaseHandler):
|
|||
guest_access_token=None,
|
||||
make_guest=False,
|
||||
admin=False,
|
||||
threepid=None,
|
||||
):
|
||||
"""Registers a new client on the server.
|
||||
|
||||
|
@ -145,7 +146,7 @@ class RegistrationHandler(BaseHandler):
|
|||
RegistrationError if there was a problem registering.
|
||||
"""
|
||||
|
||||
yield self.auth.check_auth_blocking()
|
||||
yield self.auth.check_auth_blocking(threepid=threepid)
|
||||
password_hash = None
|
||||
if password:
|
||||
password_hash = yield self.auth_handler().hash(password)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue