From 517cddb33926b1974c05856d0879171fc8e71b3a Mon Sep 17 00:00:00 2001 From: Soham Sen Date: Fri, 29 Mar 2024 16:41:30 +0530 Subject: [PATCH] Fix PUBLIC_REGISTRATION_ENABLED typo --- .env.example | 2 +- README.md | 2 +- src/routes/(auth)/register/+page.server.ts | 2 +- src/routes/(auth)/register/+page.svelte | 2 +- src/routes/+page.svelte | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index 611acc6..a227a86 100644 --- a/.env.example +++ b/.env.example @@ -18,7 +18,7 @@ MAIL_USERNAME= MAIL_PASSWORD= MAIL_FROM=YABin -PUBLIC_REGISRATION_ENABLED=true +PUBLIC_REGISTRATION_ENABLED=true PUBLIC_CUSTOM_PATHS_ENABLED=true PUBLIC_URL=http://localhost:5173 ORIGIN=http://localhost:5173 diff --git a/README.md b/README.md index 579893e..204f36a 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ Right now, my instance is using PostgreSQL on Vercel. However, it can be run usi Remember to modify `SALT` to something secure if you plan on using user accounts. -You can disable or enable public registration by modifying the `PUBLIC_REGISRATION_ENABLED` variable to `true` or `false`. +You can disable or enable public registration by modifying the `PUBLIC_REGISTRATION_ENABLED` variable to `true` or `false`. You can enable custom paste paths for everyone with the variable `PUBLIC_CUSTOM_PATHS_ENABLED`. If it is `false`, only users who are logged in can use custom paths. diff --git a/src/routes/(auth)/register/+page.server.ts b/src/routes/(auth)/register/+page.server.ts index a328fab..ec97f18 100644 --- a/src/routes/(auth)/register/+page.server.ts +++ b/src/routes/(auth)/register/+page.server.ts @@ -15,7 +15,7 @@ import { export const actions: Actions = { default: async ({ cookies, request }) => { - if (envPublic.PUBLIC_REGISRATION_ENABLED !== 'true') { + if (envPublic.PUBLIC_REGISTRATION_ENABLED !== 'true') { return fail(404, { success: false, errors: ['Not found'] }); } diff --git a/src/routes/(auth)/register/+page.svelte b/src/routes/(auth)/register/+page.svelte index 869134d..d417700 100644 --- a/src/routes/(auth)/register/+page.svelte +++ b/src/routes/(auth)/register/+page.svelte @@ -20,7 +20,7 @@
{form.message}
{/if} - {#if env.PUBLIC_REGISRATION_ENABLED == 'true'} + {#if env.PUBLIC_REGISTRATION_ENABLED == 'true'}
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 0cfa9db..0f1bd8b 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -242,7 +242,7 @@
- {#if env.PUBLIC_REGISRATION_ENABLED == 'true'} + {#if env.PUBLIC_REGISTRATION_ENABLED == 'true'}
{#if data.loggedIn}