summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-04-26 14:21:04 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-04-26 14:21:04 +0800
commit8bab21d795a6af7c424e9f8f72d613863cf34a70 (patch)
tree04f74e885552b2a446e42c0d8e79618b068253f6
parent0da329462ec4f9164a258ca4d2b1552a6166827e (diff)
downloadgitea-8bab21d795a6af7c424e9f8f72d613863cf34a70.tar.gz
gitea-8bab21d795a6af7c424e9f8f72d613863cf34a70.zip
add login.go
-rw-r--r--models/login.go33
1 files changed, 33 insertions, 0 deletions
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
+}