Ver Fonte

add login.go

Lunny Xiao há 11 anos atrás
pai
commit
8bab21d795
1 ficheiros alterados com 33 adições e 0 exclusões
  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
+}