MarseyWorld/files/assets/js/settings_security.js

13 lines
638 B
JavaScript
Raw Normal View History

document.getElementById('new_email').addEventListener('input', function () {
2022-07-16 21:00:02 +00:00
document.getElementById("email-password").classList.remove("d-none");
document.getElementById("email-password-label").classList.remove("d-none");
document.getElementById("emailpasswordRequired").classList.remove("d-none");
});
2023-10-02 06:04:05 +00:00
const twoStepModal = bootstrap.Modal.getOrCreateInstance(document.getElementById('2faModal'))
2022-07-16 21:00:02 +00:00
function emailVerifyText() {
document.getElementById("email-verify-text").innerHTML = "Verification email sent! Please check your inbox.";
2022-12-04 15:40:32 +00:00
}
2023-10-02 06:04:05 +00:00
document.getElementById('2faToggle').addEventListener('change', () => {twoStepModal.show()})