update it

This commit is contained in:
Sukchan Lee 2017-05-29 17:20:03 +09:00
parent b99312663c
commit 4ba9676349
2 changed files with 2 additions and 2 deletions

View File

@ -188,7 +188,7 @@ class Login extends Component {
this.setState({
error: {
status: true,
message: "Invalid username or password." }
message: err.toString() }
});
// @FIXME Handle error
console.log(err)

View File

@ -137,7 +137,7 @@ export default class Session {
xhr.onreadystatechange = async () => {
if (xhr.readyState === 4) {
if (xhr.status !== 200) {
return reject(Error('XMLHttpRequest error: Error while attempting to signin'))
return reject(Error('Incorrect username or password.'))
}
// Update local session data