fix grass touching submit page not showing file input by default and trying to get username from an input that doesnt exist.

This commit is contained in:
csd4ni3l
2025-08-14 12:08:15 +02:00
parent d78b5e702e
commit 16766552c1
2 changed files with 7 additions and 22 deletions

View File

@@ -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():