27 lines
1.1 KiB
HTML
27 lines
1.1 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Sign in — MartinhalApprovalFlow{% endblock %}
|
|
{% block content %}
|
|
<div class="login-box card">
|
|
<div class="brand-lg">Martinhal<span>ApprovalFlow</span></div>
|
|
{% if mfa_stage %}
|
|
<p class="sub">Two-factor authentication is enabled for <b>{{ username }}</b>. Enter the 6-digit code from your authenticator app.</p>
|
|
<form method="post" action="{{ url_for('login_mfa') }}">
|
|
<label for="c">Verification code</label>
|
|
<input id="c" type="text" name="code" inputmode="numeric" pattern="[0-9 ]*" maxlength="7"
|
|
autocomplete="one-time-code" autofocus required>
|
|
<button type="submit">Verify and sign in</button>
|
|
</form>
|
|
<p class="muted" style="margin-top:1rem"><a href="{{ url_for('login') }}">← Back to sign in</a></p>
|
|
{% else %}
|
|
<p class="sub">Sign in to send and track requests.</p>
|
|
<form method="post">
|
|
<label for="u">Username</label>
|
|
<input id="u" type="text" name="username" autofocus required>
|
|
<label for="p">Password</label>
|
|
<input id="p" type="password" name="password" required>
|
|
<button type="submit">Sign in</button>
|
|
</form>
|
|
{% endif %}
|
|
</div>
|
|
{% endblock %}
|