{% import "_macros.html" as macros %} Device Authorization - NanoIDP

NanoIDP

Device Authorization
{% if success %}
{{ success }}

The device has been authorized. You can now return to your device.

{% else %} {% if error %} {% endif %}

Enter the code displayed on your device and sign in to authorize it.


{% if (two_step_login or totp_step) and login_username %}
Signing in as {{ login_username }}
{% endif %} {% if persona_mode %} {{ macros.persona_picker(users, "Persona login - select a user to authorize this device.", js_submit=true) }}
{% elif totp_step %} {# Declarative TOTP second factor (#348): a further phase after a successful password check, riding two_step's machinery. Since nothing is stored server-side, the password travels forward as a hidden field too and is re-checked on submit. #} {{ macros.totp_code_fields(login_username, login_password) }}
{% elif two_step_login and not login_username %}
{% elif two_step_login %}
{% else %}
{% endif %}
{% if (two_step_login or totp_step) and login_username %} {% endif %}
This code will expire in 10 minutes
{% endif %}