diff --git a/frontend/src/scripts/index.js b/frontend/src/scripts/index.js index 3d22584..4728068 100644 --- a/frontend/src/scripts/index.js +++ b/frontend/src/scripts/index.js @@ -89,6 +89,11 @@ class Main extends Component { status: "failed", }) } else { + if(api_endpoint==="/api/login"){ + fetch(addr_prefix + "/api/login_status").then(resp => resp.json()).then(json => { + this.setState({login_status: json}) + }) + } this.setState({ text: data.success, status: "success",