4 Commits

3 changed files with 2 additions and 1 deletions

View File

View File

View File

@@ -85,7 +85,7 @@ def index() -> flask.Response | str:
@app.route("/login", methods=["GET", "POST"])
def login() -> str:
def login() -> flask.Response | str:
"""Handles user login via password form."""
if flask.request.method == "POST":
password = flask.request.form.get("password", "")
@@ -154,6 +154,7 @@ def stream(pc_id: str) -> str:
Rendered HTML template for streaming.
"""
return flask.render_template(
"stream.html",
logged=True,
username=flask_login.current_user.id,
pc=PC_DETAILS[pc_id],