瀏覽代碼

add login.go

Lunny Xiao 11 年之前
父節點
當前提交
8bab21d795
共有 1 個文件被更改,包括 33 次插入0 次删除
  1. 33 0
      models/login.go

+ 33 - 0
models/login.go

@@ -0,0 +1,33 @@
+package models
+
+import
+
+// Login types.
+"github.com/go-xorm/core"
+
+/*const (
+	LT_PLAIN = iota + 1
+	LT_LDAP
+	LT_SMTP
+)*/
+
+var _ core.Conversion = &LDAPConfig{}
+
+type LDAPConfig struct {
+}
+
+// implement
+func (cfg *LDAPConfig) FromDB(bs []byte) error {
+	return nil
+}
+
+func (cfg *LDAPConfig) ToDB() ([]byte, error) {
+	return nil, nil
+}
+
+type LoginSource struct {
+	Id   int64
+	Type int
+	Name string
+	Cfg  LDAPConfig
+}