sakura icon indicating copy to clipboard operation
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.

Open smallxu038 opened this issue 1 year ago • 0 comments

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. cloudflare reCAPTCHAV2 reCAPTCHAV3 mCAPTCHA Upload images

smallxu038 avatar Feb 19 '24 16:02 smallxu038