mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 15:46:04 -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
|
@ -395,11 +395,16 @@ class RegisterRestServlet(RestServlet):
|
|||
if desired_username is not None:
|
||||
desired_username = desired_username.lower()
|
||||
|
||||
threepid = None
|
||||
if auth_result:
|
||||
threepid = auth_result.get(LoginType.EMAIL_IDENTITY)
|
||||
|
||||
(registered_user_id, _) = yield self.registration_handler.register(
|
||||
localpart=desired_username,
|
||||
password=new_password,
|
||||
guest_access_token=guest_access_token,
|
||||
generate_token=False,
|
||||
threepid=threepid,
|
||||
)
|
||||
|
||||
# remember that we've now registered that user account, and with
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue