Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
style: rename requestEmailToken to request_email_token
Browse files Browse the repository at this point in the history
  • Loading branch information
3np committed Jul 29, 2022
1 parent c261dd2 commit 7bbae3a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion synapse/handlers/identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions synapse/rest/client/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion synapse/rest/client/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7bbae3a

Please sign in to comment.