fix generate_challenge not working due to wrong method and only get the challenge if a username was supplied

This commit is contained in:
csd4ni3l
2025-08-12 15:55:30 +02:00
parent 37429706dd
commit ea4e4899d0
2 changed files with 18 additions and 18 deletions

View File

@@ -61,7 +61,7 @@ def user_loader(user_id):
user.id = user_id
return user
@app.route("/generate_challenge")
@app.route("/generate_challenge", methods=["POST"])
def generate_challenge_route():
username = request.json["username"]