diff --git a/main.py b/main.py index b682dbc..ea09413 100644 --- a/main.py +++ b/main.py @@ -109,8 +109,10 @@ def submit_grass_touching(): return redirect("/") @app.route("/submit_grasstouching") +@flask_login.login_required def submit_grasstouching(): - return render_template("submit_grass_touching.jinja2") + username = flask_login.current_user.id + return render_template("submit_grass_touching.jinja2", username=username) @app.route("/generate_challenge", methods=["POST"]) def generate_challenge_route(): diff --git a/templates/submit_grass_touching.jinja2 b/templates/submit_grass_touching.jinja2 index 9e6c0c7..7fa2c84 100644 --- a/templates/submit_grass_touching.jinja2 +++ b/templates/submit_grass_touching.jinja2 @@ -33,7 +33,7 @@

Grass touching submit

-