From 8bab21d795a6af7c424e9f8f72d613863cf34a70 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sat, 26 Apr 2014 14:21:04 +0800 Subject: [PATCH] add login.go --- models/login.go | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 models/login.go diff --git a/models/login.go b/models/login.go new file mode 100644 index 0000000000..e8dbfc2725 --- /dev/null +++ b/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 +}