aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-03-23 10:51:43 -0400
committerUnknwon <u@gogs.io>2015-03-23 10:51:43 -0400
commit484175f7026c6fcabcd7f07795d224dff5f8bced (patch)
treef50855cc70f7f7ef2670f73bff9b03876cff31f8
parent2bb982dada0012d59ead783aaf90e730351171cc (diff)
#1124 lower_name of LDAP user not assigned
-rw-r--r--models/login.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/login.go b/models/login.go
index 5e5fbf43..916e2731 100644
--- a/models/login.go
+++ b/models/login.go
@@ -242,6 +242,7 @@ func LoginUserLdapSource(u *User, name, passwd string, sourceId int64, cfg *LDAP
}
u = &User{
+ LowerName: strings.ToLower(name),
Name: name,
FullName: fn + " " + sn,
LoginType: LDAP,