diff --git a/src/routes/register/success/+page.server.ts b/src/routes/register/success/+page.server.ts new file mode 100644 index 0000000..7ce6b46 --- /dev/null +++ b/src/routes/register/success/+page.server.ts @@ -0,0 +1,8 @@ +import { config } from "$lib/configuration" +import type { PageServerLoad } from "../$types" + +export const load: PageServerLoad = () => { + return { + showEmailNotice: !config.emailVerificationDisabled + } +} \ No newline at end of file diff --git a/src/routes/register/success/+page.svelte b/src/routes/register/success/+page.svelte index 8ddcea5..e42028b 100644 --- a/src/routes/register/success/+page.svelte +++ b/src/routes/register/success/+page.svelte @@ -1,9 +1,17 @@

- 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 here to log in. + {/if}