Skip to content

Commit

Permalink
Add option for custom auth title
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbaldwin44 committed Nov 29, 2024
1 parent 964124d commit 42ba4b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions locust/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down
2 changes: 1 addition & 1 deletion locust/webui/auth.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />

<title>Locust</title>
<title>{{ auth_title | default("Locust") }}</title>
</head>
<body>
<div id="root"></div>
Expand Down

0 comments on commit 42ba4b0

Please sign in to comment.