Use consistent IDs for each input of the login form

This commit is contained in:
Danielle McLean 2018-03-08 14:24:32 +11:00
parent 039b6a1914
commit d5f36bcfbe
Signed by: 00dani
GPG Key ID: 5A5D2D1AFF12EEC5
1 changed files with 2 additions and 2 deletions

View File

@ -32,8 +32,8 @@
{% form_field form.otp_token %} {% form_field form.otp_token %}
<div class="custom-control custom-checkbox"> <div class="custom-control custom-checkbox">
<input id="otp-trust-agent" name="{{ form.otp_trust_agent.name }}" class="custom-control-input" type="checkbox" /> <input id="id_{{ form.otp_trust_agent.name }}" name="{{ form.otp_trust_agent.name }}" class="custom-control-input" type="checkbox" />
<label for="otp-trust-agent" class="custom-control-label">remember this browser (don't tick this on a public computer!)</label> <label for="id_{{ form.otp_trust_agent.name }}" class="custom-control-label">remember this browser (don't tick this on a public computer!)</label>
</div> </div>
</div> </div>