浏览代码

#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,