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:
Will Hunt 2019-08-28 08:11:33 +01:00 committed by GitHub
parent aaf5e43d9f
commit 564cc0bf2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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({