password.replace(/(^\s*)|(\s*$)/g, "");
        if (!password) {
            alert('请输入密码！')
            return
        }
        $("#passwd").val('');
        let isAuthenticated = auth('{{ user.username }}', password);
        if (isAuthenticated) {
            $("#passwd-auth").modal("hide");
            if (enable === 'false') {
                let data = twofa(enable, auth_type);
                if (data.status === 0) {
                    alert('配置成功')
                } else {
    