forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-12-01 03:10:54 +02:00
commit 69e9718dda
1 changed files with 3 additions and 1 deletions

View File

@ -13,6 +13,8 @@ window.onload = function() {
});
};
const twoStepModal = new bootstrap.Modal(document.getElementById('2faModal'))
</script>
<div class="row">
@ -161,7 +163,7 @@ window.onload = 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>