From 42ba4b0208ea69ed99902a6414f27537f9d42027 Mon Sep 17 00:00:00 2001 From: Andrew Baldwin Date: Fri, 29 Nov 2024 16:31:29 -0500 Subject: [PATCH] Add option for custom auth title --- locust/web.py | 3 +-- locust/webui/auth.html | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/locust/web.py b/locust/web.py index 004d85a62b..90c41fcde2 100644 --- a/locust/web.py +++ b/locust/web.py @@ -550,8 +550,7 @@ def login(): self.auth_args["info"] = session.get("auth_info", None) return render_template_from( - "auth.html", - auth_args=self.auth_args, + "auth.html", auth_args=self.auth_args, auth_title=self.auth_args.get("title", "Locust") ) @app_blueprint.route("/user", methods=["POST"]) diff --git a/locust/webui/auth.html b/locust/webui/auth.html index 734a801d73..4f1c727909 100644 --- a/locust/webui/auth.html +++ b/locust/webui/auth.html @@ -7,7 +7,7 @@ - Locust + {{ auth_title | default("Locust") }}