We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a89b697 commit 9b2ae62Copy full SHA for 9b2ae62
changelog.d/17965.feature
@@ -0,0 +1 @@
1
+Use stable `M_USER_LOCKED` error code for locked accounts, as per [Matrix 1.12](https://spec.matrix.org/v1.12/client-server-api/#account-locking).
synapse/api/errors.py
@@ -87,8 +87,7 @@ class Codes(str, Enum):
87
WEAK_PASSWORD = "M_WEAK_PASSWORD"
88
INVALID_SIGNATURE = "M_INVALID_SIGNATURE"
89
USER_DEACTIVATED = "M_USER_DEACTIVATED"
90
- # USER_LOCKED = "M_USER_LOCKED"
91
- USER_LOCKED = "ORG_MATRIX_MSC3939_USER_LOCKED"
+ USER_LOCKED = "M_USER_LOCKED"
92
NOT_YET_UPLOADED = "M_NOT_YET_UPLOADED"
93
CANNOT_OVERWRITE_MEDIA = "M_CANNOT_OVERWRITE_MEDIA"
94
0 commit comments