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');
$(obj).unbind().keyup(function() {
$.getJSON(opts.url,
{command: 'checkpwstrength', pwd: $(this).val()},
function(data) {
$.ajax({url: opts.url,
type: 'POST',
dataType: "json",
data: {command: 'checkpwstrength', pwd: $(this).val()},
success: function(data) {
if(data.error) {
opts.onError(data, target);
} else {
opts.onChange(data, target);
}
});
}
});
});
});
};