{# The second step of a form: the method that confirms the person, a passkey, a code of an authenticator app or a recovery code (docs/AUTHENTICATION.md 4, 5). The page hands ``ways``, the methods of the user (web/pages/passkeys.py). One shows at a time, the first that works in this order, and "Try another way" lists the others. static/js/passkey.js switches between them, and with a passkey shown asks the browser when the form is sent. Without the script the field of the first code shows alone, and it takes a code of the app and a recovery code alike. ``focus``: the step starts the page, as on the code page after the password. ``legend``: the step names itself, else only to a screen reader, where the page has the same title. ``first``: the method shown first when the user has it, "totp" or "recovery", as after a wrong code. #} {% from "components/ui.html" import icon %} {% macro second_step(id, ways, focus=False, legend=True, first=None) %}
Confirm it is you {% if ways.options %} {% endif %} {% if ways.totp %}
A recovery code works here too. Each works once.
{% endif %}
Each code works once.
{% if ways.elsewhere %}

Your passkeys work at the public address of this service over HTTPS, not here.

{% endif %}
{% endmacro %}