mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-17 14:00:14 -04:00
Allow denying or shadow banning registrations via the spam checker (#8034)
This commit is contained in:
parent
e259d63f73
commit
3f91638da6
14 changed files with 258 additions and 18 deletions
|
@ -591,12 +591,17 @@ class RegisterRestServlet(RestServlet):
|
|||
Codes.THREEPID_IN_USE,
|
||||
)
|
||||
|
||||
entries = await self.store.get_user_agents_ips_to_ui_auth_session(
|
||||
session_id
|
||||
)
|
||||
|
||||
registered_user_id = await self.registration_handler.register_user(
|
||||
localpart=desired_username,
|
||||
password_hash=password_hash,
|
||||
guest_access_token=guest_access_token,
|
||||
threepid=threepid,
|
||||
address=client_addr,
|
||||
user_agent_ips=entries,
|
||||
)
|
||||
# Necessary due to auth checks prior to the threepid being
|
||||
# written to the db
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue