sakura
sakura copied to clipboard
CaptchaRequest to merge CAPTCHA functionality and fix related code for retrieving QQ information in the comment section and unclickable image upload button.
I added a common captcha to the comment section. The captcha generates a token on the front end, which is submitted along with the comment form. In ‘inc/theme_plus.php‘, the token’s validity is verified with the CAPTCHA server. The old QQ information API could no longer be used, so I replaced it with another available API. I also resolved the issue of the image upload button being unclickable.
Because I’m not proficient in JavaScript, I’m unsure if merging the JavaScript for reCAPTCHA-v2 invisible into sakura-app.js would cause other issues. Therefore, I have kept it in footer.php.