forked from rDrama/rDrama
1
0
Fork 0
master
kek7198 2021-11-30 18:44:16 -06:00
parent 21d1ba7649
commit 8297fe10e8
1 changed files with 3 additions and 1 deletions

View File

@ -13,6 +13,8 @@ window.addEventListener('DOMContentLoaded', function() {
});
});
const twoStepModal = new bootstrap.Modal(document.getElementById('2faModal'))
</script>
<div class="row">
@ -161,7 +163,7 @@ window.addEventListener('DOMContentLoaded', function() {
<div class="body w-lg-100">
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="2faToggle" name="2faToggle" onchange="document.getElementById('2faModal').modal('toggle')" {% if not mfa_secret %}checked=""{% endif %}>
<input type="checkbox" class="custom-control-input" id="2faToggle" name="2faToggle" onchange="twoStepModal.show()" {% if not mfa_secret %}checked=""{% endif %}>
<label class="custom-control-label" for="2faToggle"></label>
</div>