Update content/client-server-api/_index.md

Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
This commit is contained in:
Johannes Marbach 2024-09-25 20:08:27 +02:00 committed by GitHub
parent fe387433bc
commit 27d3db56eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)