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