Debian Codegraph @

flask_security/templates/security/verify.html

raw
1 {% extends "security/base.html" %}
2 {% set title = title|default(_fsdomain("Reauthenticate")) %}
3 {% from "security/_macros.html" import render_field_with_errors, render_field, prop_next, render_csrf %}
4
5 {% block content %}
6 {% include "security/_messages.html" %}
7 <h1>{{ _fsdomain("Reauthenticate") }}</h1>
8 <form action="{{ url_for_security('verify') }}{{ prop_next() }}" method="post" name="verify_form">
9 {{ verify_form.hidden_tag() }}
10 {{ render_field_with_errors(verify_form.password) }}
11 {{ render_field(verify_form.submit) }}
12 </form>
13 {% if has_webauthn_verify_credential %}
14 <hr class="fs-gap">
15 <h2>{{ _fsdomain("Use a Passkey to Reauthenticate") }}</h2>
16 <form action="{{ url_for_security('wan_verify') }}{{ prop_next() }}" method="post" name="wan_verify_form">
17 {# explicitly render csrf_token so we can change the ID so we don't get duplicates #}
18 {{ render_csrf(wan_verify_form, "wan") }}
19 {{ render_field(wan_verify_form.submit) }}
20 </form>
21 {% endif %}
22 {% if security.oauthglue %}
23 <hr class="fs-gap">
24 <h2>{{ _fsdomain("Use Social Login to Reauthenticate") }}</h2>
25 {% for provider in security.oauthglue.provider_names %}
26 <div class="fs-gap">
27 <form method="post" id="{{ provider }}_form" name="{{ provider }}_form">
28 <input id="{{ provider }}" name="{{ provider }}" type="submit" value="{{ _fsdomain('Continue with %(provider)s', provider=provider) }}" formaction="{{ url_for_security('oauth_verify_start', name=provider) }}{{ prop_next() }}">
29 {% if csrf_token is defined %}
30 <input id="{{ provider }}_csrf_token" name="{{ provider }}_csrf_token" type="hidden" value="{{ csrf_token() }}">
31 {% endif %}
32 </form>
33 </div>
34 {% endfor %}
35 {% endif %}
36 {% endblock content %}