Skip to content

Fix: REGISTRATION_DISABLED and DISABLE_GUEST env vars not read#53

Open
liquidpurple wants to merge 1 commit intoPhialsBasement:mainfrom
liquidpurple:fix/registration-disabled-env
Open

Fix: REGISTRATION_DISABLED and DISABLE_GUEST env vars not read#53
liquidpurple wants to merge 1 commit intoPhialsBasement:mainfrom
liquidpurple:fix/registration-disabled-env

Conversation

@liquidpurple
Copy link
Copy Markdown

Only the CLI arguments (--disable-register, --disable-guest) were checked. The environment variable path was missing, so setting REGISTRATION_DISABLED=true or DISABLE_GUEST=true had no effect.

Added os.getenv() fallback for both flags, accepting "true", "1", or "yes".

Only the CLI arguments (--disable-register, --disable-guest) were checked. The environment variable path was missing, so setting
REGISTRATION_DISABLED=true or DISABLE_GUEST=true had no effect.

Added os.getenv() fallback for both flags, accepting "true", "1", or "yes".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant