dimanche 18 janvier 2015

is this code safe from hacking?? or hacker can manipulate it and gain access to admin privileges?


function submit_login()
{
$.ajax({
type: "POST",
url: "index.php",
data: "username="+$("#username").val()+"&password="+$("#password").val()+(( $("#remember:checked").val() !== undefined ) ? "&remember=1" : ''),
success: function(data){
if (data){
window.location.reload(true);
}else{
$('.error').effect('pulsate',100);
/* $('#username, #password').animate({
backgroundColor: "#aa0000",
color: "#fff"
}, 1000 ); */
}
}
});
}




Aucun commentaire:

Enregistrer un commentaire