feat: improve email verification stage

This commit is contained in:
James Xylight committed 2025-07-11 13:10:19 -07:00
1 parent 8dd734fc24
commit 99c8ef554d
3 files changed
+21 -12

No files matched your search

+12 -6
View File
@@ -92,12 +92,8 @@
) {
if (res.verify_email_sent) return (stage = 'verify')
if (registrationMode == 'RequireApplication') {
return toast({
content: $t('toast.waitApplication'),
type: 'info',
})
}
if (registrationMode == 'RequireApplication')
return stage == 'application'
} else {
throw new Error($t('toast.failSignup'))
}
@@ -319,6 +315,16 @@
</Button>
</form>
</div>
{:else if stage == 'application'}
<div class="flex-2/3 flex flex-col h-full justify-center gap-8">
<h2 class="font-medium text-3xl">
{$t('form.signup.application.notice')}
</h2>
<Button href="/signup" rounding="pill">
<Icon src={ArrowLeft} size="16" micro />
{$t('common.back')}
</Button>
</div>
{/if}
<Material
color="uniform"