Add a page to choose second factor
This commit is contained in:
23
templates/login/choose_second_factor.html
Normal file
23
templates/login/choose_second_factor.html
Normal file
@ -0,0 +1,23 @@
|
||||
{% extends "base_login_page.html" %}
|
||||
{% block content %}
|
||||
|
||||
<div>
|
||||
<p>You need to validate a second factor to validate your login.</p>
|
||||
|
||||
{% for factor in factors %}
|
||||
<p>
|
||||
<a class="btn btn-primary btn-lg" href="{{ factor.login_url(_p.redirect_uri) }}" style="width: 100%;">
|
||||
{{ factor.name }} <br/>
|
||||
<small>{{ factor.type_str() }}</small>
|
||||
</a>
|
||||
</p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
|
||||
<div style="margin-top: 10px;">
|
||||
<a href="/logout">Sign out</a>
|
||||
</div>
|
||||
|
||||
|
||||
{% endblock content %}
|
Reference in New Issue
Block a user