mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-02-15 02:23:42 +01:00
Apply suggestions from code review
Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
This commit is contained in:
parent
f95dcfb0e7
commit
b3e2de36e8
|
|
@ -1 +1 @@
|
||||||
Add endpoints to lock and suspend server-local users for administrations and add the `m.account_management` capability, as per [MSC4323](https://github.com/matrix-org/matrix-spec-proposals/pull/4323).
|
Add administrator endpoints to lock and suspend server-local users and add the `m.account_management` capability, as per [MSC4323](https://github.com/matrix-org/matrix-spec-proposals/pull/4323).
|
||||||
|
|
|
||||||
|
|
@ -2282,7 +2282,7 @@ using their accounts, for instance, due to safety or security concerns.
|
||||||
In contrast to account deactivation, locking is a non-destructive action
|
In contrast to account deactivation, locking is a non-destructive action
|
||||||
that can be reversed.
|
that can be reversed.
|
||||||
|
|
||||||
{{% added-in v="1.18" %}} To lock or unlock an account, the administrators
|
{{% added-in v="1.18" %}} To lock or unlock an account, administrators
|
||||||
SHOULD use the [`PUT /admin/lock/{userId}`](#put_matrixclientv1adminlockuserid)
|
SHOULD use the [`PUT /admin/lock/{userId}`](#put_matrixclientv1adminlockuserid)
|
||||||
endpoint. They MAY also use [`GET /admin/lock/{userId}`](#get_matrixclientv1adminlockuserid)
|
endpoint. They MAY also use [`GET /admin/lock/{userId}`](#get_matrixclientv1adminlockuserid)
|
||||||
to check whether a user's account is locked.
|
to check whether a user's account is locked.
|
||||||
|
|
@ -2334,7 +2334,7 @@ from that account. The effect is similar to [locking](#account-locking), though
|
||||||
without risk of the client losing state from a logout. Suspensions are reversible,
|
without risk of the client losing state from a logout. Suspensions are reversible,
|
||||||
like locks and unlike deactivations.
|
like locks and unlike deactivations.
|
||||||
|
|
||||||
{{% added-in v="1.18" %}} To suspend or unsuspend an account, the administrators
|
{{% added-in v="1.18" %}} To suspend or unsuspend an account, administrators
|
||||||
SHOULD use the [`PUT /admin/suspend/{userId}`](#put_matrixclientv1adminsuspenduserid)
|
SHOULD use the [`PUT /admin/suspend/{userId}`](#put_matrixclientv1adminsuspenduserid)
|
||||||
endpoint. They MAY also use [`GET /admin/suspend/{userId}`](#get_matrixclientv1adminsuspenduserid)
|
endpoint. They MAY also use [`GET /admin/suspend/{userId}`](#get_matrixclientv1adminsuspenduserid)
|
||||||
to check whether a user's account is suspended.
|
to check whether a user's account is suspended.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue