Tweak a field name to hopefully slow some spambots.

This commit is contained in:
Ben Rog-Wilhelm 2025-01-11 12:14:50 -06:00 committed by GitHub
parent 9658c5ddc9
commit 3d27696210
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -245,7 +245,7 @@ def sign_up_post(v):
now = int(time.time())
username = request.values.get("username")
username = request.values.get("usernametwo")
if not username: abort(400)

View file

@ -22,7 +22,7 @@
{% if redirect %}<input type="hidden" name="redirect" value="{{redirect}}">{% endif %}
{% if ref_user %}<input type="hidden" name="referred_by" value="{{ref_user.id}}">{% endif %}
<label for="username-register" class="mt-3">Username</label>
<input autocomplete="off" class="form-control" id="username-register" aria-describedby="usernameHelpRegister" type="text" name="username" pattern="[a-zA-Z0-9_\-]{3,25}" min="3" max="25" required autofocus tabindex="1">
<input autocomplete="off" class="form-control" id="username-register" aria-describedby="usernameHelpRegister" type="text" name="usernametwo" pattern="[a-zA-Z0-9_\-]{3,25}" min="3" max="25" required autofocus tabindex="1">
<small id="usernameHelpRegister"></small>
<label for="email-register" class="mt-3">Email Address</label> <small class="d-inline-block text-muted ml-1">(optional)</small>

View file

@ -25,7 +25,7 @@ class AccountsFixture:
print(f"Signing up as {username}")
signup_post_response = client.post("/signup", data={
"username": username,
"usernametwo": username,
"password": "password",
"password_confirm": "password",
"email": "",