mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 07:43:18 -05:00
Backport #25425 by @Zettat123 Fixes #21169 Change `localhost` to `localhost.local` Co-authored-by: Zettat123 <zettat123@gmail.com>
This commit is contained in:
parent
ea00ed320d
commit
f18b8e7d8a
2 changed files with 2 additions and 2 deletions
|
@ -76,7 +76,7 @@ func (source *Source) Authenticate(user *user_model.User, userName, password str
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(sr.Mail) == 0 {
|
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{
|
user = &user_model.User{
|
||||||
|
|
|
@ -104,7 +104,7 @@ func (source *Source) Sync(ctx context.Context, updateExisting bool) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(su.Mail) == 0 {
|
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)
|
fullName := composeFullName(su.Name, su.Surname, su.Username)
|
||||||
|
|
Loading…
Reference in a new issue