mirror of
https://codeberg.org/angestoepselt/homepage.git
synced 2025-05-24 14:46:16 +00:00
Remove dumb Captcha, fix Typo
This commit is contained in:
parent
c1c598d3b1
commit
eb9d87167d
1 changed files with 1 additions and 9 deletions
|
|
@ -25,9 +25,6 @@ def fail(status: str, reason: str) -> None:
|
|||
|
||||
|
||||
HONEYPOT_FIELD_NAME = "addressline1"
|
||||
CAPTCHA_FIELD_NAME = "question"
|
||||
CAPTCHA_FIELD_QUESTION = "Welcher Fluss fließt durch Würzburg?"
|
||||
CAPTCHA_FIELD_VALUE = "Main"
|
||||
|
||||
SITE_DIRECTORY = os.environ.get("SITE_DIRECTORY", "")
|
||||
request_uri = os.environ.get("REQUEST_URI", "").lower().rstrip("/")
|
||||
|
|
@ -77,11 +74,6 @@ match os.environ.get("REQUEST_METHOD", "").upper():
|
|||
if "</form" in line.lower():
|
||||
print(f'<input type="hidden" name="csrftoken" value="{csrf_token}" />')
|
||||
|
||||
print(f'<label class="form-input">')
|
||||
print(f'<span>{CAPTCHA_FIELD_QUESTION}</span>')
|
||||
print(f'<input type="text" name="{CAPTCHA_FIELD_NAME}" value="" placeholder="Gebe hier \'{CAPTCHA_FIELD_VALUE}\' ein." autocomplete="off" />')
|
||||
print(f'</label>')
|
||||
|
||||
print(f'<label class="form-input">')
|
||||
print(f'<span>Bitte lasse dieses Feld leer:</span>')
|
||||
print(f'<input type="text" name="{HONEYPOT_FIELD_NAME}" value="" placeholder="Hier nichts eingeben." tabindex="-1" autocomplete="off" />')
|
||||
|
|
@ -92,7 +84,7 @@ match os.environ.get("REQUEST_METHOD", "").upper():
|
|||
print(f'</script>')
|
||||
|
||||
print('<script src="https://js.hcaptcha.com/1/api.js" async defer></script>')
|
||||
print(f'<div class="h-captcha" data-sitekey="{os.environ.get("HCAPTCHA_SITE_KEY", "")}></div>')
|
||||
print(f'<div class="h-captcha" data-sitekey="{os.environ.get("HCAPTCHA_SITE_KEY", "")}"></div>')
|
||||
print(line)
|
||||
|
||||
exit(0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue