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

Commit

Permalink
Add code M_USER_ACCOUNT_SUSPENDED, as per MSC3823.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoric committed May 23, 2022
1 parent 4fef76c commit bca6316
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions synapse/api/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ class Codes(str, Enum):
WEAK_PASSWORD = "M_WEAK_PASSWORD"
INVALID_SIGNATURE = "M_INVALID_SIGNATURE"
USER_DEACTIVATED = "M_USER_DEACTIVATED"

# The account has been suspended on the server.
# By opposition to `USER_DEACTIVATED`, this is a reversible measure
# that can possibly be appealed and reverted.
USER_ACCOUNT_SUSPENDED = "M_USER_ACCOUNT_SUSPENDED"

BAD_ALIAS = "M_BAD_ALIAS"
# For restricted join rules.
UNABLE_AUTHORISE_JOIN = "M_UNABLE_TO_AUTHORISE_JOIN"
Expand Down

0 comments on commit bca6316

Please sign in to comment.