cleanup auth login msg

Signed-off-by: vladmandic <mandic00@live.com>
This commit is contained in:
vladmandic
2025-12-24 10:50:39 +01:00
parent fab224c4df
commit 93e3658b8d
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -46,7 +46,9 @@ function forceLogin() {
})
.then(async (res) => {
const json = await res.json();
const txt = `${res.status}: ${res.statusText} - ${json.detail}`;
let txt = ''
if (res.status === 200) txt = 'login verified'
else txt = `${res.status}: ${res.statusText} - ${json.detail}`;
status.textContent = txt;
console.log('login', txt);
if (res.status === 200) location.reload();