{# 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/mailbox-service/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) %}
{% endmacro %} {#- The fields of a form that confirms a step: the name for a password manager, the password once more, and the second step where ``step``. What a ``call`` block holds comes first. #} {% macro confirm_fields(id, step=True, focus=False) %}