Платформа ЦРНП "Мирокод" для разработки проектов
https://git.mirocod.ru
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
413 B
33 lines
413 B
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 |
|
}
|
|
|