Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change the default value of automatic login to false. #5825

Closed
WXCMYDEARMELAN opened this issue Jan 21, 2025 · 1 comment
Closed

How to change the default value of automatic login to false. #5825

WXCMYDEARMELAN opened this issue Jan 21, 2025 · 1 comment
Labels
bug Something isn't working question Further information is requested

Comments

@WXCMYDEARMELAN
Copy link

Bug Description

i know the current default value is true.
What code should I modify to change the default value to false.

Reproduction

none

Expected behavior

none

Who can help?

No response

Operating System

windows11

Langflow Version

1.1.1

Python Version

None

Screenshot

No response

Flow File

No response

@WXCMYDEARMELAN WXCMYDEARMELAN added the bug Something isn't working label Jan 21, 2025
Copy link

dosubot bot commented Jan 21, 2025

To change the default value of automatic login to false in Langflow version 1.1.1 on Windows 11, you need to modify your .env file. Set the LANGFLOW_AUTO_LOGIN environment variable to False like this:

LANGFLOW_AUTO_LOGIN=False

Additionally, when LANGFLOW_AUTO_LOGIN is set to False, you must also configure LANGFLOW_SUPERUSER and LANGFLOW_SUPERUSER_PASSWORD in your .env file to enable login functionality. Here's an example configuration:

LANGFLOW_SUPERUSER=admin
LANGFLOW_SUPERUSER_PASSWORD=securepassword
LANGFLOW_SECRET_KEY=randomly_generated_secure_key
LANGFLOW_NEW_USER_IS_ACTIVE=False

After updating your .env file, run Langflow with the configured environment variables:

langflow run --env-file .env

This setup will disable automatic login and enforce user authentication [1][2].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@dosubot dosubot bot added the question Further information is requested label Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant