[BS5] fix 2fa

This commit is contained in:
FreddleSpl0it 2022-07-01 16:44:24 +02:00
parent 2d2c033ba7
commit cbd8e40f14
2 changed files with 4 additions and 4 deletions

View File

@ -190,10 +190,10 @@ function recursiveBase64StrToArrayBuffer(obj) {
// Confirm TFA modal
{% if pending_tfa_method %}
$('#ConfirmTFAModal').modal({
new bootstrap.Modal(document.getElementById("ConfirmTFAModal"), {
backdrop: 'static',
keyboard: false
});
}).show();
// validate WebAuthn tfa
$('#start_webauthn_confirmation').click(function(){

View File

@ -4,9 +4,9 @@
<form style="display:inline;" method="post">
<input type="hidden" name="unset_tfa_key" value="{{ key_info.id }}">
<p>
<span style="padding:4px;margin:4px" class="badge fs-5 bg-keys label-{% if tfa_id == key_info.id %}success{% else %}default{% endif %}">
<span style="padding:4px;margin:4px" class="badge fs-6 bg-{% if tfa_id == key_info.id %}success{% else %}dark{% endif %}">
{{ key_info.key_id }}
<a href="#" style="font-weight:bold;color:white" onClick='return confirm("{{ lang.admin.ays }}")?$(this).closest("form").submit():"";'>[{{ lang.admin.remove }}]</a>
<a href="#" class="btn p-0 text-white" style="font-size: 12px; line-height: 1rem;" onClick='return confirm("{{ lang.admin.ays }}")?$(this).closest("form").submit():"";'>[{{ lang.admin.remove }}]</a>
</span>
</p>
</form>