users need always login
This commit is contained in:
+2
-2
@@ -101,8 +101,8 @@ function hideLogin() {
|
||||
async function refreshAuth() {
|
||||
try {
|
||||
const auth = await api("/api/auth/status");
|
||||
elements.logout.hidden = !auth.enabled || auth.local || !auth.authenticated;
|
||||
if (auth.enabled && !auth.local && !auth.authenticated) showLogin();
|
||||
elements.logout.hidden = !auth.enabled || !auth.authenticated;
|
||||
if (auth.enabled && !auth.authenticated) showLogin();
|
||||
} catch (error) {
|
||||
setStatus(`Authenticatiestatus onbekend: ${error.message}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user