From 40d4c938ae1b2535cb0175554da7dfa79780a093 Mon Sep 17 00:00:00 2001 From: jejebecarte <69335633+jejebecarte@users.noreply.github.com> Date: Fri, 27 Sep 2024 16:02:13 +1000 Subject: [PATCH] fix: allow manual authorization with missing MINECRAFT_PASSWORD --- README.md | 2 +- src/util/env.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1b05c1b3..7cc3a441 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ $ pnpm run pm2:start $ pnpm run pm2:kill ``` -Please refer to the [PM2 Documentation](https://pm2.keymetrics.io/docs/usage/quick-start/) for more configuration options and information about PM2. +Please refer to the [PM2 documentation](https://pm2.keymetrics.io/docs/usage/quick-start/) for more configuration options and information about PM2. ## Contributing diff --git a/src/util/env.ts b/src/util/env.ts index 382880ed..faf548b8 100644 --- a/src/util/env.ts +++ b/src/util/env.ts @@ -12,10 +12,10 @@ const BOOLEAN_SCHEMA = z const SNOWFLAKE_SCHEMA = z.coerce.string().regex(/^\d*$/gm); +// MINECRAFT_PASSWORD field omitted to allow for manual authorization const envSchema = z .object({ MINECRAFT_EMAIL: z.string().email(), - MINECRAFT_PASSWORD: z.string().min(1), HYPIXEL_API_KEY: z.string().min(1), MINECRAFT_CHAT_SEPARATOR: z.string().trim().min(1), USE_PROFANITY_FILTER: BOOLEAN_SCHEMA,