Handle old server that don't support login using email address

This commit is contained in:
David Baker 2015-08-10 16:22:33 +01:00
parent 9d8d4e4896
commit 7a1796870a

View File

@ -91,7 +91,11 @@ module.exports = {
}
}, function(error) {
self.setStep("stage_m.login.password");
self.setState({errorText: 'Login failed.'});
if (error.httpStatus == 400 && loginParams.medium) {
self.setState({errorText: 'This Home Server does not support login using email address.'});
} else {
self.setState({errorText: 'Login failed.'});
}
});
},