Skip to content

Add geetest captcha

Kun Qian请求将replace-tencent-captcha-to-geetest合并到main-jh

What does this MR do and why?

This MR is frontend part of #1746 (closed)

Screenshots or screen recordings

Scenario 1 Scenario 2 Scenario 3
image image same with scenario 2

How to set up and validate locally

  1. Merge geetest_captcha_backend branch into replace-tencent-captcha-to-geetest
  2. Start GDK with GEETEST_CAPTCHA_ID='ask MR author for it' GEETEST_CAPTCHA_KEY='ask MR author for it'
  3. Enable FF
Feature.enable(:geetest_captcha)
  1. Enter http://127.0.0.1:3000/admin/application_settings/reporting
  2. Config(register reCAPTCHA and Akismet, ask MR author for the keys) image
  3. Refresh login page serveral times (scenario 1)
  4. Create code snippets named 123123test (scenario 2)
  5. Enable realname(you can hardcode jh/lib/gitlab/real_name_system.rb to true) (scenario 3)

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Kun Qian 编辑于

合并请求报告