Add maxlength attribute to password input fields on splash.html

This commit is contained in:
Grant Bacon 2025-11-22 10:28:07 -08:00
parent 77f74ddb2f
commit 90b084395d
No known key found for this signature in database
GPG key ID: 1C73EA83060D6644

View file

@ -111,7 +111,7 @@
<div> <div>
<form id="lf" method="post" enctype="multipart/form-data" action="{{ r }}/{{ qvpath }}"> <form id="lf" method="post" enctype="multipart/form-data" action="{{ r }}/{{ qvpath }}">
<input type="hidden" id="la" name="act" value="login" /> <input type="hidden" id="la" name="act" value="login" />
<input type="password" id="lp" name="cppwd" placeholder=" password" /> <input type="password" id="lp" name="cppwd" placeholder=" password" maxlength="64" />
<input type="hidden" name="uhash" id="uhash" value="x" /> <input type="hidden" name="uhash" id="uhash" value="x" />
<input type="submit" id="ls" value="Unlock" /> <input type="submit" id="ls" value="Unlock" />
{%- if ahttps %} {%- if ahttps %}
@ -137,9 +137,9 @@
<input type="hidden" id="la" name="act" value="login" /> <input type="hidden" id="la" name="act" value="login" />
{%- if this.args.usernames %} {%- if this.args.usernames %}
<input type="text" id="lu" name="uname" placeholder=" username" size="12" /> <input type="text" id="lu" name="uname" placeholder=" username" size="12" />
<input type="password" id="lp" name="cppwd" placeholder=" password" size="12" /> <input type="password" id="lp" name="cppwd" placeholder=" password" size="12" maxlength="64" />
{%- else %} {%- else %}
<input type="password" id="lp" name="cppwd" placeholder=" password" /> <input type="password" id="lp" name="cppwd" placeholder=" password" maxlength="64" />
{%- endif %} {%- endif %}
<input type="hidden" name="uhash" id="uhash" value="x" /> <input type="hidden" name="uhash" id="uhash" value="x" />
<input type="submit" id="ls" value="login" /> <input type="submit" id="ls" value="login" />