mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Change default email domain for LDAP users (#25425)
Fixes #21169 Change `localhost` to `localhost.local`
This commit is contained in:
		@@ -104,7 +104,7 @@ func (source *Source) Sync(ctx context.Context, updateExisting bool) error {
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if len(su.Mail) == 0 {
 | 
			
		||||
			su.Mail = fmt.Sprintf("%s@localhost", su.Username)
 | 
			
		||||
			su.Mail = fmt.Sprintf("%s@localhost.local", su.Username)
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		fullName := composeFullName(su.Name, su.Surname, su.Username)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user