Today, I submitted the JS using the AJAX that Axios writes and registers. It can send requests normally, but I find that the backend can not accept the username and password information from the frontend at all. How should I fix this BUG? Thank you.
part of the JS code (jQuery):
var captcha_res_ticket = $.cookie("captcha.res.ticket");
var captcha_res_randstr = $.cookie("captcha.res.randstr");
var username = $("-sharpinputUsername").val();
var email = $("-sharpinputEmail").val();
var password = $("-sharpinputPassword").val();
var repassword = $("-sharpinputRepassword").val();
var agree_user_agreement = $("-sharpagree_user_agreement").is(":checked");
var participate_in_the_user_experience_program = $("-sharpparticipate_in_the_user_experience_program").is(":checked");
Axios partial code:
axios({
url: "/user/user_registration/php/registration.php",
method: "post",
timeout: 3000,
data: {
captcha_res_ticket: captcha_res_ticket,
captcha_res_randstr: captcha_res_randstr,
username: username,
email: email,
password: password
}
})
Captcha comes from my CAPTCHA API.