Register clients with user_type "bot"
Depends on https://github.com/matrix-org/synapse/pull/5902 This means that synapse servers that require consent will not demand it from bot users.
This commit is contained in:
parent
aaf5e43d9f
commit
564cc0bf2c
@ -93,6 +93,7 @@ async def register(request: web.Request) -> web.Response:
|
|||||||
"password": password,
|
"password": password,
|
||||||
"admin": False,
|
"admin": False,
|
||||||
"mac": mac,
|
"mac": mac,
|
||||||
|
"user_type": "bot",
|
||||||
}))
|
}))
|
||||||
except MatrixRequestError as e:
|
except MatrixRequestError as e:
|
||||||
return web.json_response({
|
return web.json_response({
|
||||||
|
Loading…
Reference in New Issue
Block a user