display different success page when not requiring email verification
This commit is contained in:
parent
27bb067779
commit
978929eb13
2 changed files with 18 additions and 2 deletions
8
src/routes/register/success/+page.server.ts
Normal file
8
src/routes/register/success/+page.server.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
import { config } from "$lib/configuration"
|
||||
import type { PageServerLoad } from "../$types"
|
||||
|
||||
export const load: PageServerLoad = () => {
|
||||
return {
|
||||
showEmailNotice: !config.emailVerificationDisabled
|
||||
}
|
||||
}
|
|
@ -1,9 +1,17 @@
|
|||
<script>
|
||||
import Link from '$lib/components/Link.svelte';
|
||||
import Navbar from '$lib/components/Navbar.svelte';
|
||||
|
||||
const { data } = $props();
|
||||
</script>
|
||||
|
||||
<Navbar title="Registration successful" />
|
||||
<p class="mx-10">
|
||||
Your account has been registered successfully. An email has been sent to your email address to
|
||||
activate the account. Please follow the instructions in the email to be able to log in.
|
||||
Your account has been registered successfully.
|
||||
{#if data.showEmailNotice}
|
||||
An email has been sent to your email address to activate the account. Please follow the
|
||||
instructions in the email to be able to log in.
|
||||
{:else}
|
||||
Click <Link href="/login">here</Link> to log in.
|
||||
{/if}
|
||||
</p>
|
||||
|
|
Loading…
Add table
Reference in a new issue