From b99ae2496d457d0505b776e56bb5081b357bc6df Mon Sep 17 00:00:00 2001 From: Wenkai Yin Date: Thu, 30 Mar 2017 18:53:39 +0800 Subject: [PATCH] shorten message --- src/common/utils/ldap/ldap.go | 2 +- src/ui/auth/ldap/ldap.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/utils/ldap/ldap.go b/src/common/utils/ldap/ldap.go index 87e8ff021..8e8283bbf 100644 --- a/src/common/utils/ldap/ldap.go +++ b/src/common/utils/ldap/ldap.go @@ -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" } diff --git a/src/ui/auth/ldap/ldap.go b/src/ui/auth/ldap/ldap.go index 3a2cbff92..90de617c8 100644 --- a/src/ui/auth/ldap/ldap.go +++ b/src/ui/auth/ldap/ldap.go @@ -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" // }