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 28, 2022
1 parent 2a8a59c commit e992427
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 e992427

Please sign in to comment.