$.ajax + authentication + `@` in username
- by Koning Baard XIV
I am creating a web app which uses jQuery to authenticate:
$.ajax({
url: "/session/create?format=json",
type: "GET",
dataType: "json",
cache: false,
username: $("#signin-email").val(),
password: $("#signin-password").val(),
success: function(data) {
if(data.success) {
success = true;
}
}
});
…