This is my method:
$.validator.addMethod("password_verify_old", function(value, element){
$.ajax({
type: "GET",
url: verify_old_password_url,
data: {oldPassword: value},
dataType: "json",
success: function (msg) {
return eval(msg);
}
});
}, "Old password is incorrect.");
Here, I'm calling my controller which returns just a "true" String. Why does the jquery.validate.js interpret this as 'false'?