Fix: ALTCHA secret key not found.

This commit is contained in:
2025-03-15 18:34:13 +00:00
parent 90cf9eaee7
commit 1a7b72022d
3 changed files with 3 additions and 10 deletions

View File

@@ -48,7 +48,7 @@ class ALTCHAValidator:
decoded_data = base64.b64decode(altcha_data).decode('utf-8')
altcha_payload = json.loads(decoded_data)
ok, err = verify_solution(altcha_payload, current_app.config["ALTCHA_SECRET_KEY"], check_expires=True)
ok, err = verify_solution(altcha_payload, current_app.app_config["ALTCHA_SECRET_KEY"], check_expires=True)
if err or not ok:
raise ValidationError(self.message + ': ' + (err or 'Invalid solution'))