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

Fix Login Manager Error Message #2905

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

andrewbaldwin44
Copy link
Collaborator

When the --web-login flag is used without a login_manager, we should pass the error from flask_login to communicate that a user or request loader must be set

Before Fix

Locust auth exception: 'Flask' object has no attribute 'login_manager' See https://docs.locust.io/en/stable/extending-locust.html#adding-authentication-to-the-web-ui for configuring authentication.

After Fix

Locust auth exception: Missing user_loader or request_loader. Refer to http://flask-login.readthedocs.io/#how-it-works for more info. See https://docs.locust.io/en/stable/extending-locust.html#adding-authentication-to-the-web-ui for configuring authentication.

@andrewbaldwin44 andrewbaldwin44 force-pushed the bugfix/login-manager-errors branch from e0b8a3c to 4f6e8ce Compare September 17, 2024 08:10
@cyberw cyberw merged commit 3762075 into locustio:master Sep 17, 2024
14 of 15 checks passed
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.

2 participants