Skip to content

Commit

Permalink
fix: allow manual authorization with missing MINECRAFT_PASSWORD
Browse files Browse the repository at this point in the history
  • Loading branch information
jejebecarte committed Sep 27, 2024
1 parent 949127e commit 40d4c93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/util/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 40d4c93

Please sign in to comment.