Fix: ALTCHA create challenge error.

This commit is contained in:
2025-03-15 19:32:34 +01:00
parent 7b9e900cfe
commit 90cf9eaee7

View File

@@ -86,6 +86,7 @@ def contact_post():
@routes_core.route(Model_View_Contact.HASH_ALTCHA_CREATE_CHALLENGE, methods=['GET'])
def create_altcha_challenge():
Helper_App.console_log(f'secret key: {current_app.config["ALTCHA_SECRET_KEY"]}')
options = ChallengeOptions(
expires = datetime.datetime.now() + datetime.timedelta(hours=1),
max_number = 100000, # The maximum random number