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:
		@@ -76,7 +76,7 @@ func (source *Source) Authenticate(user *user_model.User, userName, password str
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if len(sr.Mail) == 0 {
 | 
			
		||||
			sr.Mail = fmt.Sprintf("%s@localhost", sr.Username)
 | 
			
		||||
			sr.Mail = fmt.Sprintf("%s@localhost.local", sr.Username)
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		user = &user_model.User{
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user