2023-10-20 21:38:13 +00:00
|
|
|
{% extends 'auth/master.twig' %}
|
2023-10-18 10:34:30 +00:00
|
|
|
|
2023-10-20 21:38:13 +00:00
|
|
|
{% block content %}
|
2023-10-18 10:34:30 +00:00
|
|
|
<form class="auth-login" method="post" action="/login/tfa">
|
|
|
|
<div class="auth-avatar">
|
|
|
|
<div class="auth-avatar-image">
|
2023-10-20 21:38:13 +00:00
|
|
|
<img src="//flashii.net/assets/avatar/{{ user_info.id }}?res=200" alt="">
|
2023-10-18 10:34:30 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="auth-fields">
|
|
|
|
<label class="auth-input">
|
|
|
|
<div class="auth-input-title">
|
|
|
|
Username
|
|
|
|
</div>
|
|
|
|
<div class="auth-input-value">
|
2023-10-20 21:38:13 +00:00
|
|
|
<input type="text" value="{{ user_info.name }}" readonly>
|
2023-10-18 10:34:30 +00:00
|
|
|
</div>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="auth-buttons">
|
2023-10-20 21:38:13 +00:00
|
|
|
{% if 'totp' in auth_method_names %}
|
2023-10-18 10:34:30 +00:00
|
|
|
<a href="/login/tfa/totp" class="auth-button auth-button-primary">Authenticator app (TOTP)</a>
|
2023-10-20 21:38:13 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if 'u2f' in auth_method_names %}
|
2023-10-18 10:34:30 +00:00
|
|
|
<a href="/login/tfa/u2f" class="auth-button auth-button-primary">Security key (U2F)</a>
|
2023-10-20 21:38:13 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if 'backup' in auth_method_names %}
|
2023-10-18 10:34:30 +00:00
|
|
|
<a href="/login/tfa/backup" class="auth-button auth-button-primary">Backup code</a>
|
2023-10-20 21:38:13 +00:00
|
|
|
{% endif %}
|
2023-10-18 10:34:30 +00:00
|
|
|
<a href="/login" class="auth-button">Cancel</a>
|
|
|
|
</div>
|
|
|
|
</form>
|
2023-10-20 21:38:13 +00:00
|
|
|
{% endblock %}
|