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
1 changed files with 3 additions and 6 deletions

View File

@ -31,12 +31,9 @@
{% form_field form.password %}
{% form_field form.otp_token %}
<div class="form-group">
<label class="custom-control custom-checkbox">
<input name="{{ form.otp_agent_trust.name }}" class="custom-control-input" type="checkbox" />
<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 class="custom-control custom-checkbox">
<input id="otp-trust-agent" 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>
</div>
</div>