blob: 56f5e75fd42a2bb709dd0f38135d6516a818cfcb [file] [log] [blame]
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +01001{% extends 'base.twig' %}
2
3{% block content %}
4<h3>{{ lang.user.user_settings }}</h3>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01005<div class="card">
6 <div class="card-header">{{ lang.user.user_settings }}</div>
7 <div class="card-body">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +01008 <div class="row">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01009 <div class="offset-sm-3 col-sm-9">
10 <p><a href="#pwChangeModal" data-bs-toggle="modal">[{{ lang.user.change_password }}]</a></p>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010011 <div class="last-login"></div>
12 <span class="clear-last-logins">{{ lang.user.clear_recent_successful_connections }}</span>
13 </div>
14 </div>
15 <hr>
16
17 {# TFA #}
18 <div class="row">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010019 <div class="col-sm-3 col-5 text-end">{{ lang.tfa.tfa }}</div>
20 <div class="col-sm-9 col-7">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010021 <p id="tfa_pretty">{{ tfa_data.pretty }}</p>
22 {% include 'tfa_keys.twig' %}
23 <br>
24 </div>
25 </div>
26 <div class="row">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010027 <div class="col-sm-3 col-5 text-end">{{ lang.tfa.set_tfa }}</div>
28 <div class="col-sm-9 col-7">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010029 <select id="selectTFA" class="selectpicker" title="{{ lang.tfa.select }}">
30 <option value="yubi_otp">{{ lang.tfa.yubi_otp }}</option>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010031 <option value="webauthn">{{ lang.tfa.webauthn }}</option>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010032 <option value="totp">{{ lang.tfa.totp }}</option>
33 <option value="none">{{ lang.tfa.none }}</option>
34 </select>
35 </div>
36 </div>
37
38 <hr>
39 {# FIDO2 #}
40 <div class="row">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010041 <div class="col-sm-3 col-5 text-end">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010042 <p><i class="bi bi-shield-fill-check"></i> {{ lang.fido2.fido2_auth }}</p>
43 </div>
44 </div>
45 <div class="row">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010046 <div class="col-sm-3 col-5 text-end">{{ lang.fido2.known_ids }}:</div>
47 <div class="col-sm-9 col-7">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010048 <div class="table-responsive">
49 <table class="table table-striped table-hover table-condensed" id="fido2_keys">
50 <tr>
51 <th>ID</th>
52 <th style="min-width:240px;text-align: right">{{ lang.admin.action }}</th>
53 </tr>
54 {% include 'fido2.twig' %}
55 </table>
56 </div>
57 <br>
58 </div>
59 </div>
60 <div class="row">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010061 <div class="offset-sm-3 col-sm-9">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010062 <div class="btn-group">
63 <button class="btn btn-sm btn-primary" id="register-fido2">{{ lang.fido2.set_fido2 }}</button>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010064 <button type="button" class="btn btn-sm btn-xs-lg btn-primary dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></button>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010065 <ul class="dropdown-menu">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010066 <li><a class="dropdown-item" href="#" id="register-fido2-touchid"><i class="bi bi-shield-fill-check"></i> {{ lang.fido2.set_fido2_touchid }}</a></li>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010067 </ul>
68 </div>
69 </div>
70 </div>
71 <br>
72 <div class="row" id="status-fido2">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010073 <div class="col-sm-3 col-5 text-end">{{ lang.fido2.register_status }}:</div>
74 <div class="col-sm-9 col-7">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010075 <div id="fido2-alerts">-</div>
76 </div>
77 <br>
78 </div>
79 </div>
80</div>
81{% include 'user_domainadmin_common.twig' %}
82{% endblock %}