File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1- web : npm start & node server.js
1+ npm start & node server.js; wait
Original file line number Diff line number Diff line change @@ -5,9 +5,12 @@ import TextField from '@mui/material/TextField';
55import Button from '@mui/material/Button' ;
66import Typography from "@mui/material/Typography" ;
77import LoginNavbar from './LoginNavbar' ;
8+ import ip from 'ip' ;
89
910import '../../styles/Login.css' ;
1011
12+ ip = require ( "ip" ) ;
13+
1114const useStyles = makeStyles ( theme => ( {
1215 login : {
1316 display : 'flex' ,
@@ -22,7 +25,7 @@ const useStyles = makeStyles(theme => ({
2225} ) ) ;
2326
2427async function loginUser ( credentials ) {
25- return fetch ( ' http://localhost :8080/login' , {
28+ return fetch ( ` http://${ ip . address ( ) } :8080/login` , {
2629 method : 'POST' ,
2730 headers : {
2831 'Content-Type' : 'application/json'
You can’t perform that action at this time.
0 commit comments