{"size": 576, "ext": "js", "max_stars_repo_path": "public/js/verificarUser.js", "max_stars_repo_name": "Deslaygo/SistemaControlPagos", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/js/verificarUser.js", "max_issues_repo_name": "Deslaygo/SistemaControlPagos", "max_issues_repo_issues_event_min_datetime": "2021-05-06T19:13:20.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-06T19:13:20.000Z", "max_forks_repo_path": "public/js/verificarUser.js", "max_forks_repo_name": "Deslaygo/SistemaControlPagos", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 30.3157894737, "max_line_length": 84, "alphanum_fraction": 0.5017361111}
$(document).ready(function () {
$("#btnGenerarUser").on("click",function(event){
            event.preventDefault();
    var username = $("#username").val();
    $.getJSON("validarUser?username="+username,function(data){       
        if(JSON.stringify(data) == '{}'){
            console.log("username = false");
        }else{
             swal({
            title: "¡ERROR!",
            text: "El nombre de usuario ya existe, favor de generar uno nuevamente",
            icon: "error",
            });
            console.log("username=true");
        }
    });
});
});
