This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
wangwei
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
add login.go
tags/v1.2.0-rc1
Lunny Xiao
12 years ago
parent
0da329462e
commit
8bab21d795
1 changed files
with
33 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+33
-0
models/login.go
+ 33
- 0
models/login.go
View 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
}
Write
Preview
Loading…
Cancel
Save