reCaptcha is not supported in Reset password via email form
Why are we doing this work
Since the reset password form was refactored in #2049 (closed) and a bug was found in #2800 (closed) for the email form. Reset password via email now supports all CAPTCHA forms in JH, but not reCaptcha which is used in global.
We take into account that we should be consistent with the upstream functionality, so we need to make recaptcha available at least in the email reset form.
由于重置密码表单在#2049 (closed)中被重构,并且在#2800 (closed)中发现了电子邮件表单的错误。通过电子邮件重置密码现在支持JH中的所有验证码表单,但不支持上游使用的reCaptcha。
我们考虑到我们应该与上游的功能保持一致,所以我们需要使reCaptcha至少在电子邮件重置表单中可用。
Relevant links
Non-functional requirements
-
Documentation: -
Feature flag: -
Performance: -
Testing:
Implementation plan
As @qk44077907 mentioned, we should move the email form's captcha back to the backend-driven haml+js rendering. By doing this it ensures that reCaptcha is still available in the email form and that the tabs are hidden via JavaScript control.