Tweak a field name to hopefully slow some spambots.

This commit is contained in:
Ben Rog-Wilhelm 2025-01-11 12:05:37 -06:00
parent 9658c5ddc9
commit ac4d9f413f
2 changed files with 2 additions and 2 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>