Skip to content

Fix captcha failed while creating a new issue

related with #1044 (closed)

related upstream issue

We have overridden the captcha part from upstream on both frontend and backend to use Tencent Captcha. For creating issue, the frontend params is using params['tencent_captcha_response'] instead of params['g-recaptcha-response'], this is why we need to override it on the backend.

The captcha cases listed in the comment should also be covered in specs.

Proposal

  • override the param name
  • add new specs for all captcha scenarios on backend

How to test

  1. Given reCAPTCHA is enabled
  2. And tencent_captcha feature flag is enabled
  3. When creating a spam issue
  4. Then you should see the Anti-spam verification
  5. And solve the captcha
  6. And click on Create issue button
  7. Then the issue should be created
Martin Tan 编辑于

合并请求报告