update it
This commit is contained in:
parent
b99312663c
commit
4ba9676349
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue