Let user know their account has been deactivated upon trying to login

This commit is contained in:
Bruno Windels 2019-08-05 13:43:06 +02:00 committed by David Baker
parent 4f48f89704
commit b531bb58ca
2 changed files with 4 additions and 1 deletions

View file

@ -217,7 +217,9 @@ module.exports = React.createClass({
</div>
);
} else if (error.httpStatus === 401 || error.httpStatus === 403) {
if (SdkConfig.get()['disable_custom_urls']) {
if (error.errcode === 'M_USER_DEACTIVATED') {
errorText = _t('This account has been deactivated.');
} else if (SdkConfig.get()['disable_custom_urls']) {
errorText = (
<div>
<div>{ _t('Incorrect username and/or password.') }</div>