diff options
author | Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | 2019-07-31 15:19:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-31 15:19:06 +0100 |
commit | 72167fb39474517da836170b79d03726f78e35e2 (patch) | |
tree | 065f4f10cbfc464e0422c366cb929448fc82977a /sytest-blacklist | |
parent | Remove duplicate return statement (diff) | |
download | synapse-72167fb39474517da836170b79d03726f78e35e2.tar.xz |
Change user deactivated errcode to USER_DEACTIVATED and use it (#5686)
This is intended as an amendment to #5674 as using M_UNKNOWN as the errcode makes it hard for clients to differentiate between an invalid password and a deactivated user (the problem we were trying to solve in the first place). M_UNKNOWN was originally chosen as it was presumed than an MSC would have to be carried out to add a new code, but as Synapse often is the testing bed for new MSC implementations, it makes sense to try it out first in the wild and then add it into the spec if it is successful. Thus this PR return a new M_USER_DEACTIVATED code when a deactivated user attempts to login.
Diffstat (limited to 'sytest-blacklist')
0 files changed, 0 insertions, 0 deletions