mirror of
https://github.com/csd4ni3l/grass_touching_captcha.git
synced 2026-01-01 04:23:45 +01:00
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:
4
main.py
4
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():
|
||||
|
||||
Reference in New Issue
Block a user