BasicOIDC/templates/login/choose_second_factor.html

27 lines
844 B
HTML
Raw Normal View History

2022-04-19 16:27:21 +00:00
{% extends "base_login_page.html" %}
{% block content %}
<div>
2022-04-21 17:28:54 +00:00
<p>You need to validate a second factor to complete your login.</p>
2022-04-19 16:27:21 +00:00
2022-11-11 11:26:02 +00:00
{% for factor in user.get_distinct_factors_types() %}
2024-03-26 20:07:29 +00:00
<!-- We can ask to force 2FA, because once we are here, it means 2FA is required anyway... -->
<a class="btn btn-primary btn-lg" href="{{ factor.login_url(p.redirect_uri, true) }}"
style="width: 100%; display: flex;">
<img src="{{ factor.type_image() }}" alt="Factor icon" style="margin-right: 1em;"/>
2022-11-11 11:26:02 +00:00
<div style="text-align: left;">
{{ factor.type_str() }} <br/>
<small style="font-size: 0.7em;">{{ factor.description_str() }}</small>
</div>
</a>
2024-03-26 20:07:29 +00:00
<br/>
2022-04-19 16:27:21 +00:00
{% endfor %}
</div>
<div style="margin-top: 10px;">
<a href="/logout">Sign out</a>
</div>
{% endblock content %}