diff --git a/frontend/src/webapp/auth/AuthScreen.svelte b/frontend/src/webapp/auth/AuthScreen.svelte index 7df26be..a90981a 100644 --- a/frontend/src/webapp/auth/AuthScreen.svelte +++ b/frontend/src/webapp/auth/AuthScreen.svelte @@ -45,7 +45,8 @@ let authPanelHeight = 0; - $: passwordModeActive = Boolean(passwordLoginMode && CFG.emailAuthEnabled !== false); + $: emailAuthEnabled = CFG.emailAuthEnabled !== false; + $: passwordModeActive = Boolean(passwordLoginMode && emailAuthEnabled); $: authCardHeight = authPanelHeight ? `${authPanelHeight}px` : undefined; @@ -149,46 +150,48 @@ {authStatus} {/if} - {:else if CFG.emailAuthEnabled !== false} -