Merge pull request #112 from Aevann1/2fa-modal

2fa modal
remotes/1693045480750635534/spooky-22
Aevann1 2021-11-30 16:46:35 -08:00 committed by GitHub
commit e6cb9bed1c
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>