mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 03:44:56 -04:00
Allow new users to be registered via the admin API even if the monthly active user limit has been reached (#7263)
This commit is contained in:
parent
2970ce8367
commit
908f9e2d24
4 changed files with 172 additions and 16 deletions
|
@ -270,6 +270,7 @@ class UserRestServletV2(RestServlet):
|
|||
admin=bool(admin),
|
||||
default_display_name=displayname,
|
||||
user_type=user_type,
|
||||
by_admin=True,
|
||||
)
|
||||
|
||||
if "threepids" in body:
|
||||
|
@ -432,6 +433,7 @@ class UserRegisterServlet(RestServlet):
|
|||
password_hash=password_hash,
|
||||
admin=bool(admin),
|
||||
user_type=user_type,
|
||||
by_admin=True,
|
||||
)
|
||||
|
||||
result = await register._create_registration_details(user_id, body)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue