Automatically focus username field in login view (#1549)

This commit is contained in:
Matt Scott 2023-04-28 04:47:19 -04:00 committed by GitHub
commit 8aef6fe8f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,6 +40,7 @@
<div class="form-group">
<input type="text" class="form-control" placeholder="Username" name="username"
data-error="Please input your username" required
autofocus
{% if username %}value="{{ username }}" {% endif %}>
<span class="help-block with-errors"></span>
</div>