mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-25 16:54:39 +02:00
✨ feat(auth-ui): show email verified banner on login pages
Add verified banner and email pre-fill to LoginPage component when users are redirected after email verification. Updates all app login pages to pass verification params from URL query string. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
2ccd063628
commit
09b8d7b384
12 changed files with 162 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
|||
<script lang="ts">
|
||||
import { goto } from '$app/navigation';
|
||||
import { page } from '$app/stores';
|
||||
import { locale } from 'svelte-i18n';
|
||||
import { LoginPage, setGoogleClientId } from '@manacore/shared-auth-ui';
|
||||
import { getLoginTranslations } from '@manacore/shared-i18n';
|
||||
|
|
@ -32,6 +33,10 @@
|
|||
// TODO: Implement OAuth with Mana Core Auth when ready
|
||||
return { success: false, error: 'Apple Sign-In not yet implemented' };
|
||||
}
|
||||
|
||||
// Read verification status from query params (set after email verification)
|
||||
const verified = $derived($page.url.searchParams.get('verified') === 'true');
|
||||
const initialEmail = $derived($page.url.searchParams.get('email') || '');
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
|
|
@ -54,6 +59,8 @@
|
|||
lightBackground="#f0f9ff"
|
||||
darkBackground="#0c1929"
|
||||
{translations}
|
||||
{verified}
|
||||
{initialEmail}
|
||||
>
|
||||
{#snippet headerControls()}
|
||||
<LanguageSelector />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue