{% props alert: String %}
<h1>Two-factor sign-in</h1>
<p>Enter the code from your authenticator app, or one of your recovery
codes.</p>
{%- if !alert.is_empty() %}
<p class="alert">{{ alert }}</p>
{%- end %}
{{ form_tag(two_factor_challenge_path(), "post") }}
<p>
<label>Code<br><input name="code" required autofocus autocomplete="one-time-code"></label>
</p>
<button>Sign in</button>
</form>