1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-08-05 05:05:17 +02:00

Add multi-factor authentication (MFA) support; update localization and error handling

This commit is contained in:
Sean Morley 2024-12-13 20:21:44 -05:00
parent 1b54f8ed69
commit 9bf0849b92
15 changed files with 369 additions and 68 deletions

View file

@ -1,13 +1,14 @@
<script lang="ts">
import type { PageData } from '../$types';
import { t } from 'svelte-i18n';
export let data: PageData;
</script>
{#if data.verified}
<h1>Email verified</h1>
<p>Your email has been verified. You can now log in.</p>
<h1>{$t('settings.email_verified')}</h1>
<p>{$t('settings.email_verified_success')}</p>
{:else}
<h1>Email verification failed</h1>
<p>Your email could not be verified. Please try again.</p>
<h1>{$t('settings.email_verified_error')}</h1>
<p>{$t('settings.email_verified_erorr_desc')}</p>
{/if}