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
- Given reCAPTCHA is enabled
- And
tencent_captcha
feature flag is enabled - When creating a spam issue
- Then you should see the
Anti-spam verification
- And solve the captcha
- And click on
Create issue
button - Then the issue should be created
由 Martin Tan 编辑于