mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 13:28:25 +00:00 
			
		
		
		
	Add new captcha: cloudflare turnstile (#22369)
Added a new captcha(cloudflare turnstile) and its corresponding document. Cloudflare turnstile official instructions are here: https://developers.cloudflare.com/turnstile Signed-off-by: ByLCY <bylcy@bylcy.dev> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Jason Song <i@wolfogre.com>
This commit is contained in:
		@@ -88,8 +88,8 @@ import {initCommonOrganization} from './features/common-organization.js';
 | 
			
		||||
import {initRepoWikiForm} from './features/repo-wiki.js';
 | 
			
		||||
import {initRepoCommentForm, initRepository} from './features/repo-legacy.js';
 | 
			
		||||
import {initFormattingReplacements} from './features/formatting.js';
 | 
			
		||||
import {initMcaptcha} from './features/mcaptcha.js';
 | 
			
		||||
import {initCopyContent} from './features/copycontent.js';
 | 
			
		||||
import {initCaptcha} from './features/captcha.js';
 | 
			
		||||
import {initRepositoryActionView} from './components/RepoActionView.vue';
 | 
			
		||||
 | 
			
		||||
// Run time-critical code as soon as possible. This is safe to do because this
 | 
			
		||||
@@ -191,7 +191,7 @@ $(document).ready(() => {
 | 
			
		||||
  initRepositoryActionView();
 | 
			
		||||
 | 
			
		||||
  initCommitStatuses();
 | 
			
		||||
  initMcaptcha();
 | 
			
		||||
  initCaptcha();
 | 
			
		||||
 | 
			
		||||
  initUserAuthLinkAccountView();
 | 
			
		||||
  initUserAuthOauth2();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user