shorten message

This commit is contained in:
Wenkai Yin 2017-03-30 18:53:39 +08:00
parent 2092387e18
commit b99ae2496d
2 changed files with 2 additions and 2 deletions

View File

@ -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"
}

View File

@ -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"
// }