mirror of
https://github.com/csd4ni3l/grass_touching_captcha.git
synced 2026-01-01 12:33:45 +01:00
fix grass touching submit page
This commit is contained in:
6
main.py
6
main.py
@@ -86,7 +86,7 @@ def resize_image_file(path, max_side=256, fmt="JPEG"):
|
||||
img = img.resize((int(img.width * scale), int(img.height * scale)), Image.LANCZOS)
|
||||
img.save(path, format=fmt)
|
||||
|
||||
@app.route("/submit_grass_touching", methods=["POST"])
|
||||
@app.route("/grass_touch_submit", methods=["POST"])
|
||||
@flask_login.login_required
|
||||
def submit_grass_touching():
|
||||
username = flask_login.current_user.id
|
||||
@@ -108,6 +108,10 @@ def submit_grass_touching():
|
||||
|
||||
return redirect("/")
|
||||
|
||||
@app.route("/submit_grasstouching")
|
||||
def submit_grasstouching():
|
||||
return render_template("submit_grass_touching.jinja2")
|
||||
|
||||
@app.route("/generate_challenge", methods=["POST"])
|
||||
def generate_challenge_route():
|
||||
username = request.json["username"]
|
||||
|
||||
Reference in New Issue
Block a user