mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-30 22:11:07 +00:00 
			
		
		
		
	Search federatedUser instead of loginName
This commit is contained in:
		
					parent
					
						
							
								e44be72251
							
						
					
				
			
			
				commit
				
					
						66bc7a9a0c
					
				
			
		
					 4 changed files with 46 additions and 52 deletions
				
			
		|  | @ -32,7 +32,6 @@ func GetFederationHost(ctx context.Context, ID int64) (*FederationHost, error) { | |||
| 
 | ||||
| func FindFederationHostByFqdn(ctx context.Context, fqdn string) (*FederationHost, error) { | ||||
| 	host := new(FederationHost) | ||||
| 	// TODO: use parameter with toLower | ||||
| 	has, err := db.GetEngine(ctx).Where("host_fqdn=?", strings.ToLower(fqdn)).Get(host) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue