mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-09-02 01:01:33 +02:00
fix: show long login code button regardless where the user is coming from
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user