Compare commits

..

No commits in common. 'aa663ecf105ce49a876e7eb1b22b797a43948bcf' and 'deefa9102e7a076eef3c404dd37f168ab09304b4' have entirely different histories.

  1. 2
      Docker/Dockerfile_FE_Host.dockerfile
  2. 22
      Frontend/src/components/Login.js

2
Docker/Dockerfile_FE_Host.dockerfile

@ -11,4 +11,4 @@ RUN pwd && ls -la
RUN npm install -g serve
CMD ["serve", "-l", "tcp://0.0.0.0:5000", "-s", "build"]
CMD ["serve", "-s", "build"]

22
Frontend/src/components/Login.js

@ -28,21 +28,6 @@ class Login extends Component {
this.setState({ [name]: event.target.value });
};
// Test
// 123Abc!&
login() {
fetch("/login", { method: "POST", body: JSON.stringify(this.state) })
.then(function(response) {
if (response.status === 200) return response.json();
else return response.statusText;
})
.then(function(myJson) {
console.log(myJson);
//document.cookie = myJson;
});
}
render() {
const classes = this.props.classes;
@ -82,12 +67,7 @@ class Login extends Component {
/>
</Grid>
</Grid>
<Fab
color="primary"
aria-label="Send"
className={classes.fab}
onClick={() => this.login()}
>
<Fab color="primary" aria-label="Send" className={classes.fab}>
<SendIcon />
</Fab>
</Grid>

Loading…
Cancel
Save