This commit is contained in:
Martin Quarda 2024-10-09 23:55:31 +02:00
parent e70b9e5494
commit 163ccdfe00

View File

@ -89,11 +89,9 @@ class Main extends Component {
status: "failed", status: "failed",
}) })
} else { } else {
if(api_endpoint==="/api/login"){ fetch(addr_prefix + "/api/login_status").then(resp => resp.json()).then(json => {
fetch(addr_prefix + "/api/login_status").then(resp => resp.json()).then(json => { this.setState({login_status: json})
this.setState({login_status: json}) })
})
}
this.setState({ this.setState({
status_text: data.success, status_text: data.success,
status: "success", status: "success",