From 816386660eb78a82ffc42d2fec350fe6e3f0df02 Mon Sep 17 00:00:00 2001 From: Martin Quarda Date: Wed, 9 Oct 2024 19:07:39 +0200 Subject: [PATCH] maybe? --- frontend/src/scripts/index.js | 5 +++++ 1 file changed, 5 insertions(+) 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",