Skip to content

Commit

Permalink
Fix silly passkey missing input field.
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Sargent committed Feb 3, 2024
1 parent 7e650d6 commit 926164c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion approval_polls/templates/registration/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div class="card-header text-center">Login</div>
<div class="card-body">
<form method="post"
action="{% if next %}/accounts/login/?next={{ next }}{% else %}/accounts/login/{% endif %}"
action="{% if next %}/accounts/login/?next= {{ next }}{% else %}/accounts/login/{% endif %}"
id="loginForm">
{% csrf_token %}
{% if invalid %}<div class="alert alert-danger" role="alert">Invalid Username or Password</div>{% endif %}
Expand All @@ -36,6 +36,7 @@
placeholder="Password">
</div>
<button type="submit" class="btn btn-primary w-100">Login</button>
<input type="hidden" name="passkeys" id="passkeys" />
<div class="text-center mt-3">
<button class="btn btn-block btn-dark"
type="button"
Expand Down

0 comments on commit 926164c

Please sign in to comment.