Skip to content

Commit

Permalink
fix cannot verify OTP
Browse files Browse the repository at this point in the history
  • Loading branch information
quzanh1130 authored Sep 23, 2024
1 parent 3c8e842 commit f84ef22
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/main/webapp/WEB-INF/jspf/guest/components/verify.jspf
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,16 @@
event.stopPropagation();
confirmCloseOTP();
});

document.addEventListener("DOMContentLoaded", function() {
const otpModal = document.getElementById('trigger-otp-modal');
const triggerOtp = otpModal.getAttribute('data-trigger-otp');
console.log(triggerOtp);
if (triggerOtp === 'true') {
const modalInstance = new bootstrap.Modal(otpModal);
modalInstance.show();
}
});
</script>

<!--Check Voucher-->
Expand Down Expand Up @@ -103,4 +113,4 @@
</div>
</div>
</div>
</div>
</div>

0 comments on commit f84ef22

Please sign in to comment.