Patch the 'remember this browser' checkbox to work with the current Bootstrap and django-otp-agents versions

This commit is contained in:
Danielle McLean 2018-03-08 13:56:15 +11:00
parent 9580068c5b
commit 7d677734f3
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5

View file

@ -31,12 +31,9 @@
{% form_field form.password %} {% form_field form.password %}
{% form_field form.otp_token %} {% form_field form.otp_token %}
<div class="form-group"> <div class="custom-control custom-checkbox">
<label class="custom-control custom-checkbox"> <input id="otp-trust-agent" name="{{ form.otp_trust_agent.name }}" class="custom-control-input" type="checkbox" />
<input name="{{ form.otp_agent_trust.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>
<span class="custom-control-indicator"></span>
<span class="custom-control-description">remember this browser (don't tick this on a public computer!)</span>
</label>
</div> </div>
</div> </div>