mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-09-26 21:20:51 -04:00
Fix the auth provider on the logins metric (#9573)
We either need to pass the auth provider over the replication api, or make sure we report the auth provider on the worker that received the request. I've gone with the latter.
This commit is contained in:
parent
17cd48fe51
commit
1107214a1d
3 changed files with 33 additions and 18 deletions
|
@ -61,7 +61,7 @@ class RegisterDeviceReplicationServlet(ReplicationEndpoint):
|
|||
is_guest = content["is_guest"]
|
||||
is_appservice_ghost = content["is_appservice_ghost"]
|
||||
|
||||
device_id, access_token = await self.registration_handler.register_device(
|
||||
res = await self.registration_handler.register_device_inner(
|
||||
user_id,
|
||||
device_id,
|
||||
initial_display_name,
|
||||
|
@ -69,7 +69,7 @@ class RegisterDeviceReplicationServlet(ReplicationEndpoint):
|
|||
is_appservice_ghost=is_appservice_ghost,
|
||||
)
|
||||
|
||||
return 200, {"device_id": device_id, "access_token": access_token}
|
||||
return 200, res
|
||||
|
||||
|
||||
def register_servlets(hs, http_server):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue