app-MAIL-temp/templates/dashboard/fido_manage.html

54 lines
1.6 KiB
HTML
Raw Normal View History

2020-05-18 14:07:06 +02:00
{% extends 'default.html' %}
{% set active_page = "setting" %}
{% block title %}
2020-05-18 14:11:54 +02:00
Manage Security Key
2020-05-18 14:07:06 +02:00
{% endblock %}
{% block head %}
<script src="{{ url_for('static', filename='node_modules/qrious/dist/qrious.min.js') }}"></script>
{% endblock %}
{% block default_content %}
<div class="card">
<div class="card-body">
<h1 class="h2">Manage Your Security Key</h1>
2020-05-18 14:10:19 +02:00
<p>Unlink all keys will also disable WebAuthn 2FA.</p>
2020-05-18 14:07:06 +02:00
<form id="formManageKey" method="post">
{{ fido_manage_form.csrf_token }}
{{ fido_manage_form.credential_id(class="form-control", placeholder="") }}
</form>
<table class="table table-striped">
<thead>
<tr>
<th scope="col">ID</th>
<th scope="col">Name</th>
<th scope="col">Linked At</th>
<th scope="col" class="text-center">Operation</th>
</tr>
</thead>
<tbody>
{%for key in keys%}
<tr>
<th scope="row">{{ key.id }}</th>
<td>{{ key.name }}</td>
2020-05-18 23:05:03 +02:00
<td>{{key.created_at | dt}}</td>
2020-05-18 14:10:19 +02:00
<td class="text-center"><button class="btn btn-outline-danger" onclick="$('#credential_id').val('{{ key.credential_id }}'); $('#formManageKey').submit();">Unlink</button></td>
2020-05-18 14:07:06 +02:00
</tr>
{%endfor%}
<tr>
<th scope="row">#</th>
<td>Link a New Key</td>
<td></td>
<td class="text-center"><a href="{{ url_for('dashboard.fido_setup') }}"><button class="btn btn-outline-success">Link</button></a></td>
</tr>
</tbody>
</table>
</div>
</div>
{% endblock %}