From 059d45d50ed9e6b1229295ab9ccb9d566d3910fe Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Tue, 25 Aug 2026 18:51:55 +0200 Subject: [PATCH] fix: show long login code button regardless where the user is coming from --- frontend/src/routes/login/alternative/code/+page.svelte | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/frontend/src/routes/login/alternative/code/+page.svelte b/frontend/src/routes/login/alternative/code/+page.svelte index c7e7941e..37238c12 100644 --- a/frontend/src/routes/login/alternative/code/+page.svelte +++ b/frontend/src/routes/login/alternative/code/+page.svelte @@ -24,7 +24,6 @@ let longCodeRequested = $state( code.length > shortCodeLength || !$appConfigStore.emailOneTimeAccessAsUnauthenticatedEnabled ); - let showLongCodeOption = $state($appConfigStore.emailOneTimeAccessAsUnauthenticatedEnabled); let codeComplete = $derived( longCodeRequested ? code.length === longCodeLength : code.length === shortCodeLength ); @@ -62,10 +61,6 @@ if (code) { authenticate(); } - - if (data.redirect.startsWith('/interaction')) { - showLongCodeOption = false; - } }); @@ -108,7 +103,7 @@ {/snippet} {/if} - {#if !longCodeRequested && showLongCodeOption} + {#if !longCodeRequested}