use post request for checking password strength

get request will leave the password in the log files
This commit is contained in:
Uwe Steinmann 2013-09-03 08:20:25 +02:00
parent ae1f78228a
commit 5e17cf150f

View File

@ -47,15 +47,18 @@
var target = $(obj).attr('rel'); var target = $(obj).attr('rel');
$(obj).unbind().keyup(function() { $(obj).unbind().keyup(function() {
$.getJSON(opts.url, $.ajax({url: opts.url,
{command: 'checkpwstrength', pwd: $(this).val()}, type: 'POST',
function(data) { dataType: "json",
data: {command: 'checkpwstrength', pwd: $(this).val()},
success: function(data) {
if(data.error) { if(data.error) {
opts.onError(data, target); opts.onError(data, target);
} else { } else {
opts.onChange(data, target); opts.onChange(data, target);
} }
}); }
});
}); });
}); });
}; };