Explorar o código

#1124 lower_name of LDAP user not assigned

Unknwon %!s(int64=10) %!d(string=hai) anos
pai
achega
484175f702
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      models/login.go

+ 1 - 0
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,