mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-23 11:34:09 +01:00
Update content/client-server-api/_index.md
Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
This commit is contained in:
parent
fe387433bc
commit
27d3db56eb
|
|
@ -1440,8 +1440,8 @@ Server administrators may apply locks to prevent users from usefully
|
||||||
using their accounts, for instance, due to safety or security concerns.
|
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. This specification describes the behaviour of clients
|
that can be reversed. This specification describes the behaviour of clients
|
||||||
and servers when an account is locked but deliberately leaves the creation
|
and servers when an account is locked. It deliberately leaves the methods
|
||||||
and removal of locks as a server implementation detail.
|
for locking and unlocking accounts as a server implementation detail.
|
||||||
|
|
||||||
When an account is locked, servers MUST return a `401 Unauthorized` error
|
When an account is locked, servers MUST return a `401 Unauthorized` error
|
||||||
response with an `M_USER_LOCKED` error code and [`soft_logout`](#soft-logout)
|
response with an `M_USER_LOCKED` error code and [`soft_logout`](#soft-logout)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue