Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 1 | {% extends 'base.twig' %} |
| 2 | |
| 3 | {% block content %} |
| 4 | <h3>{{ lang.user.user_settings }}</h3> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 5 | <div class="card"> |
| 6 | <div class="card-header">{{ lang.user.user_settings }}</div> |
| 7 | <div class="card-body"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 8 | <div class="row"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 9 | <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 Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 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"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 19 | <div class="col-sm-3 col-5 text-end">{{ lang.tfa.tfa }}</div> |
| 20 | <div class="col-sm-9 col-7"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 21 | <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 Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 27 | <div class="col-sm-3 col-5 text-end">{{ lang.tfa.set_tfa }}</div> |
| 28 | <div class="col-sm-9 col-7"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 29 | <select id="selectTFA" class="selectpicker" title="{{ lang.tfa.select }}"> |
| 30 | <option value="yubi_otp">{{ lang.tfa.yubi_otp }}</option> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 31 | <option value="webauthn">{{ lang.tfa.webauthn }}</option> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 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"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 41 | <div class="col-sm-3 col-5 text-end"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 42 | <p><i class="bi bi-shield-fill-check"></i> {{ lang.fido2.fido2_auth }}</p> |
| 43 | </div> |
| 44 | </div> |
| 45 | <div class="row"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 46 | <div class="col-sm-3 col-5 text-end">{{ lang.fido2.known_ids }}:</div> |
| 47 | <div class="col-sm-9 col-7"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 48 | <div class="table-responsive"> |
Matthias Andreas Benkard | d1f5b68 | 2023-11-18 13:18:30 +0100 | [diff] [blame] | 49 | <table class="table table-striped table-hover table-condensed w-100" id="fido2_keys"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 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 Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 61 | <div class="offset-sm-3 col-sm-9"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 62 | <div class="btn-group"> |
| 63 | <button class="btn btn-sm btn-primary" id="register-fido2">{{ lang.fido2.set_fido2 }}</button> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 64 | <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 Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 65 | <ul class="dropdown-menu"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 66 | <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 Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 67 | </ul> |
| 68 | </div> |
| 69 | </div> |
| 70 | </div> |
| 71 | <br> |
| 72 | <div class="row" id="status-fido2"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 73 | <div class="col-sm-3 col-5 text-end">{{ lang.fido2.register_status }}:</div> |
| 74 | <div class="col-sm-9 col-7"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 75 | <div id="fido2-alerts">-</div> |
| 76 | </div> |
| 77 | <br> |
| 78 | </div> |
| 79 | </div> |
| 80 | </div> |
| 81 | {% include 'user_domainadmin_common.twig' %} |
| 82 | {% endblock %} |