mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Make captcha and password optional for external accounts (#6606)
This commit is contained in:
		@@ -216,6 +216,9 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`.
 | 
			
		||||
   Requires `Mailer` to be enabled.
 | 
			
		||||
- `DISABLE_REGISTRATION`: **false**: Disable registration, after which only admin can create
 | 
			
		||||
   accounts for users.
 | 
			
		||||
- `REQUIRE_EXTERNAL_REGISTRATION_PASSWORD`: **false**: Enable this to force externally created
 | 
			
		||||
   accounts (via GitHub, OpenID Connect, etc) to create a password. Warning: enabling this will
 | 
			
		||||
   decrease security, so you should only enable it if you know what you're doing.
 | 
			
		||||
- `REQUIRE_SIGNIN_VIEW`: **false**: Enable this to force users to log in to view any page.
 | 
			
		||||
- `ENABLE_NOTIFY_MAIL`: **false**: Enable this to send e-mail to watchers of a repository when
 | 
			
		||||
   something happens, like creating issues. Requires `Mailer` to be enabled.
 | 
			
		||||
@@ -225,6 +228,8 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`.
 | 
			
		||||
- `ENABLE_REVERSE_PROXY_EMAIL`: **false**: Enable this to allow to auto-registration with a
 | 
			
		||||
   provided email rather than a generated email.
 | 
			
		||||
- `ENABLE_CAPTCHA`: **false**: Enable this to use captcha validation for registration.
 | 
			
		||||
- `REQUIRE_EXTERNAL_REGISTRATION_CAPTCHA`: **false**: Enable this to force captcha validation
 | 
			
		||||
   even for External Accounts (i.e. GitHub, OpenID Connect, etc). You must `ENABLE_CAPTCHA` also.
 | 
			
		||||
- `CAPTCHA_TYPE`: **image**: \[image, recaptcha\]
 | 
			
		||||
- `RECAPTCHA_SECRET`: **""**: Go to https://www.google.com/recaptcha/admin to get a secret for recaptcha.
 | 
			
		||||
- `RECAPTCHA_SITEKEY`: **""**: Go to https://www.google.com/recaptcha/admin to get a sitekey for recaptcha.
 | 
			
		||||
@@ -419,7 +424,7 @@ NB: You must `REDIRECT_MACARON_LOG` and have `DISABLE_ROUTER_LOG` set to `false`
 | 
			
		||||
 | 
			
		||||
## Metrics (`metrics`)
 | 
			
		||||
 | 
			
		||||
- `ENABLED`: **false**: Enables /metrics endpoint for prometheus. 
 | 
			
		||||
- `ENABLED`: **false**: Enables /metrics endpoint for prometheus.
 | 
			
		||||
- `TOKEN`: **\<empty\>**: You need to specify the token, if you want to include in the authorization the metrics . The same token need to be used in prometheus parameters `bearer_token` or `bearer_token_file`.
 | 
			
		||||
 | 
			
		||||
## API (`api`)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user