mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Now that we have #27798 we don't need the check from #27870 anymore. With the check it's not possible to remove an inactive auth source from the user.
This commit is contained in:
		@@ -84,7 +84,7 @@ func loadSecurityData(ctx *context.Context) {
 | 
				
			|||||||
	// map the provider display name with the AuthSource
 | 
						// map the provider display name with the AuthSource
 | 
				
			||||||
	sources := make(map[*auth_model.Source]string)
 | 
						sources := make(map[*auth_model.Source]string)
 | 
				
			||||||
	for _, externalAccount := range accountLinks {
 | 
						for _, externalAccount := range accountLinks {
 | 
				
			||||||
		if authSource, err := auth_model.GetSourceByID(ctx, externalAccount.LoginSourceID); err == nil && authSource.IsActive {
 | 
							if authSource, err := auth_model.GetSourceByID(ctx, externalAccount.LoginSourceID); err == nil {
 | 
				
			||||||
			var providerDisplayName string
 | 
								var providerDisplayName string
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			type DisplayNamed interface {
 | 
								type DisplayNamed interface {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user