mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-04 14:46:57 -05:00
add login.go
This commit is contained in:
parent
0da329462e
commit
8bab21d795
33
models/login.go
Normal file
33
models/login.go
Normal file
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user