mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Add setting to OAuth handlers to skip local 2FA authentication (#16594)
This PR adds a setting to OAuth and OpenID login sources to allow the source to skip local 2FA authentication. Fix #13939 Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
		@@ -24,6 +24,7 @@ type Source struct {
 | 
			
		||||
	OpenIDConnectAutoDiscoveryURL string
 | 
			
		||||
	CustomURLMapping              *CustomURLMapping
 | 
			
		||||
	IconURL                       string
 | 
			
		||||
	SkipLocalTwoFA                bool
 | 
			
		||||
 | 
			
		||||
	// reference to the loginSource
 | 
			
		||||
	loginSource *models.LoginSource
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user