blob: 6aae54bad4004a124e399c391b0990f8c12a2860 [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>
5<div class="panel panel-default">
6 <div class="panel-heading">{{ lang.user.user_settings }}</div>
7 <div class="panel-body">
8 <div class="row">
9 <div class="col-sm-offset-3 col-sm-9">
10 <p><a href="#pwChangeModal" data-toggle="modal">[{{ lang.user.change_password }}]</a></p>
11 <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">
19 <div class="col-sm-3 col-xs-5 text-right">{{ lang.tfa.tfa }}</div>
20 <div class="col-sm-9 col-xs-7">
21 <p id="tfa_pretty">{{ tfa_data.pretty }}</p>
22 {% include 'tfa_keys.twig' %}
23 <br>
24 </div>
25 </div>
26 <div class="row">
27 <div class="col-sm-3 col-xs-5 text-right">{{ lang.tfa.set_tfa }}</div>
28 <div class="col-sm-9 col-xs-7">
29 <select id="selectTFA" class="selectpicker" title="{{ lang.tfa.select }}">
30 <option value="yubi_otp">{{ lang.tfa.yubi_otp }}</option>
31 <option value="u2f">{{ lang.tfa.u2f }}</option>
32 <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">
41 <div class="col-sm-3 col-xs-5 text-right">
42 <p><i class="bi bi-shield-fill-check"></i> {{ lang.fido2.fido2_auth }}</p>
43 </div>
44 </div>
45 <div class="row">
46 <div class="col-sm-3 col-xs-5 text-right">{{ lang.fido2.known_ids }}:</div>
47 <div class="col-sm-9 col-xs-7">
48 <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">
61 <div class="col-sm-offset-3 col-sm-9">
62 <div class="btn-group">
63 <button class="btn btn-sm btn-primary" id="register-fido2">{{ lang.fido2.set_fido2 }}</button>
64 <button type="button" class="btn btn-sm btn-xs-lg btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
65 <span class="caret"></span>
66 </button>
67 <ul class="dropdown-menu">
68 <li><a href="#" id="register-fido2-touchid" style="line-height:1.4;"><i class="bi bi-shield-fill-check"></i> {{ lang.fido2.set_fido2_touchid }}</a></li>
69 </ul>
70 </div>
71 </div>
72 </div>
73 <br>
74 <div class="row" id="status-fido2">
75 <div class="col-sm-3 col-xs-5 text-right">{{ lang.fido2.register_status }}:</div>
76 <div class="col-sm-9 col-xs-7">
77 <div id="fido2-alerts">-</div>
78 </div>
79 <br>
80 </div>
81 </div>
82</div>
83{% include 'user_domainadmin_common.twig' %}
84{% endblock %}