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

Commit 8d3656b

Browse files
authored
Document that you cannot login as yourself on /_synapse/admin/v1/users/<user_id>/login (#15938)
1 parent 20ae617 commit 8d3656b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

changelog.d/15938.doc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Improve the documentation for the login as a user admin API.

docs/admin_api/user_admin_api.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,8 @@ POST /_synapse/admin/v1/users/<user_id>/login
732732

733733
An optional `valid_until_ms` field can be specified in the request body as an
734734
integer timestamp that specifies when the token should expire. By default tokens
735-
do not expire.
735+
do not expire. Note that this API does not allow a user to login as themselves
736+
(to create more tokens).
736737

737738
A response body like the following is returned:
738739

0 commit comments

Comments
 (0)