mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-01-11 12:59:31 -05:00
Fall back to 'username' if 'user' is not given for appservice reg.
This commit is contained in:
parent
a2d288c6a9
commit
e885e2a623
@ -134,6 +134,8 @@ class RegisterRestServlet(RestServlet):
|
|||||||
# fallback to 'username' if they gave one.
|
# fallback to 'username' if they gave one.
|
||||||
if isinstance(body.get("user"), basestring):
|
if isinstance(body.get("user"), basestring):
|
||||||
desired_username = body["user"]
|
desired_username = body["user"]
|
||||||
|
|
||||||
|
if isinstance(desired_username, basestring):
|
||||||
result = yield self._do_appservice_registration(
|
result = yield self._do_appservice_registration(
|
||||||
desired_username, request.args["access_token"][0]
|
desired_username, request.args["access_token"][0]
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user