1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-05-11 05:55:29 +00:00

Change default email domain for LDAP users (#25425)

Fixes #21169

Change `localhost` to `localhost.local`
This commit is contained in:
Zettat123
2023-06-22 16:16:12 +08:00
committed by GitHub
parent 93cd579269
commit a55ff0dd99
2 changed files with 2 additions and 2 deletions

View File

@ -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{