mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-28 14:43:52 +03:00
34 lines
413 B
Go
34 lines
413 B
Go
|
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
|
||
|
}
|