소스 검색

#1124 lower_name of LDAP user not assigned

Unknwon 10 년 전
부모
커밋
484175f702
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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,