Commit 7a179687 authored by David Baker's avatar David Baker
Browse files

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

parent 9d8d4e48
......@@ -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.'});
}
});
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment