fix: show long login code button regardless where the user is coming from

This commit is contained in:
Elias Schneider
2026-08-25 18:51:55 +02:00
parent d75523fed0
commit 059d45d50e

View File

@@ -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;
}
});
</script>
@@ -108,7 +103,7 @@
{/snippet}
</InputOTP.Root>
{/if}
{#if !longCodeRequested && showLongCodeOption}
{#if !longCodeRequested}
<div class="flex justify-center">
<Button
class="mt-2 text-muted-foreground text-xs"