mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 14:34:47 -04:00
Rename get_access_token_for_user_id
method to create_access_token_for_user_id
(#11369)
This commit is contained in:
parent
60ecb6b4d4
commit
0d86f6334a
7 changed files with 16 additions and 15 deletions
|
@ -898,7 +898,7 @@ class UserTokenRestServlet(RestServlet):
|
|||
if auth_user.to_string() == user_id:
|
||||
raise SynapseError(400, "Cannot use admin API to login as self")
|
||||
|
||||
token = await self.auth_handler.get_access_token_for_user_id(
|
||||
token = await self.auth_handler.create_access_token_for_user_id(
|
||||
user_id=auth_user.to_string(),
|
||||
device_id=None,
|
||||
valid_until_ms=valid_until_ms,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue