mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-05 18:20:37 +01:00
shorten message
This commit is contained in:
parent
2092387e18
commit
b99ae2496d
@ -300,7 +300,7 @@ func ImportUser(user models.LdapUser) (int64, error) {
|
||||
}
|
||||
|
||||
u.Password = "12345678AbC"
|
||||
u.Comment = "registered from LDAP."
|
||||
u.Comment = "from LDAP."
|
||||
if u.Email == "" {
|
||||
u.Email = u.Username + "@placeholder.com"
|
||||
}
|
||||
|
@ -89,7 +89,7 @@ func (l *Auth) Authenticate(m models.AuthModel) (*models.User, error) {
|
||||
u.UserID = currentUser.UserID
|
||||
} else {
|
||||
// u.Password = "12345678AbC"
|
||||
// u.Comment = "registered from LDAP."
|
||||
// u.Comment = "from LDAP."
|
||||
// if u.Email == "" {
|
||||
// u.Email = u.Username + "@placeholder.com"
|
||||
// }
|
||||
|
Loading…
Reference in New Issue
Block a user