{% if set_pin_form.non_field_errors|length == 0 and set_pin_form.current_password.errors|length == 0 and set_pin_form.pin.errors|length == 0 %}
{% if auth_site_settings.pin_method == 'PERMANENT' %}
Please set your pin. You will not be asked to do this again unless PIN requirements change.
You can manually change your PIN at any time by clicking on your username on the
navigation bar after login.
{% endif %}
{% else %}
{% for error in set_pin_form.non_field_errors %}
{% endfor %}
{% for error in set_pin_form.current_password.errors %}
{% endfor %}
{% for error in set_pin_form.pin.errors %}
{% endfor %}
{% endif %}
{% include 'auth-form-user-identifier.html' %}
Pin must be {{ auth_site_settings.pin_length }} digits in length.
{% if success == 'set_pin' %}
Your PIN was set successfully.
{% endif %}
{% csrf_token %}