in src/frontend/src/App.js [60:69]
login() {
const { username, password } = this.state;
axios.post(endPoint + '/api/login', {
"username": username,
"password": password
}).then(response => {
this.setState({ authenticated: response.data.authenticated });
this.start_socket();
});
}