From e9924276361a6dfc3c8688f2e5e2750eb3d2a070 Mon Sep 17 00:00:00 2001 From: 3np <3np@example.com> Date: Thu, 28 Jul 2022 10:37:05 +0900 Subject: [PATCH] style: rename requestEmailToken to request_email_token --- synapse/handlers/identity.py | 2 +- synapse/rest/client/account.py | 4 ++-- synapse/rest/client/register.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/synapse/handlers/identity.py b/synapse/handlers/identity.py index c281763b6594..e5afe84df9fb 100644 --- a/synapse/handlers/identity.py +++ b/synapse/handlers/identity.py @@ -416,7 +416,7 @@ async def send_threepid_validation( return session_id - async def requestEmailToken( + async def request_email_token( self, id_server: str, email: str, diff --git a/synapse/rest/client/account.py b/synapse/rest/client/account.py index f179fb2606cd..a445aba8f0e1 100644 --- a/synapse/rest/client/account.py +++ b/synapse/rest/client/account.py @@ -133,7 +133,7 @@ async def on_POST(self, request: SynapseRequest) -> Tuple[int, JsonDict]: assert self.hs.config.registration.account_threepid_delegate_email # Have the configured identity server handle the request - ret = await self.identity_handler.requestEmailToken( + ret = await self.identity_handler.request_email_token( self.hs.config.registration.account_threepid_delegate_email, email, client_secret, @@ -417,7 +417,7 @@ async def on_POST(self, request: SynapseRequest) -> Tuple[int, JsonDict]: assert self.hs.config.registration.account_threepid_delegate_email # Have the configured identity server handle the request - ret = await self.identity_handler.requestEmailToken( + ret = await self.identity_handler.request_email_token( self.hs.config.registration.account_threepid_delegate_email, email, client_secret, diff --git a/synapse/rest/client/register.py b/synapse/rest/client/register.py index f92fcda26507..b7ab090bbdcd 100644 --- a/synapse/rest/client/register.py +++ b/synapse/rest/client/register.py @@ -142,7 +142,7 @@ async def on_POST(self, request: SynapseRequest) -> Tuple[int, JsonDict]: assert self.hs.config.registration.account_threepid_delegate_email # Have the configured identity server handle the request - ret = await self.identity_handler.requestEmailToken( + ret = await self.identity_handler.request_email_token( self.hs.config.registration.account_threepid_delegate_email, email, client_secret,