diff --git a/maubot/management/frontend/src/pages/Login.js b/maubot/management/frontend/src/pages/Login.js index ac9829e..640d0df 100644 --- a/maubot/management/frontend/src/pages/Login.js +++ b/maubot/management/frontend/src/pages/Login.js @@ -30,7 +30,8 @@ class Login extends Component { inputChanged = event => this.setState({ [event.target.name]: event.target.value }) - login = async () => { + login = async evt => { + evt.preventDefault() this.setState({ loading: true }) const resp = await api.login(this.state.username, this.state.password) if (resp.token) { @@ -53,17 +54,17 @@ class Login extends Component { } return
-
+

Maubot Manager

- {this.state.error &&
{this.state.error}
} -
+
} }