                alert(data.msg)
                }
            } else {
                if (auth_type === 'sms') {
                    $("#2fa-auth").modal("show");
                } else {
                    let data = twofa(enable, auth_type);
                    if (data.status === 0) {
                            if (auth_type === 'totp') {
                                let key = data.data.key;
                                $("#qrcode-img").attr("key", key)
                                $("#qrcode