summaryrefslogtreecommitdiffstats
path: root/models/user.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-05-05 16:42:15 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-05-05 16:42:15 +0800
commitd8136c9c3cf0f7d84510402f01cbe07a656a0587 (patch)
tree2a1a7553a111a008a0322625c30130ca952b6acd /models/user.go
parent02687cbdf37be3c89005abe45c7d1f6240e339e0 (diff)
parent1652dd5068f2f3ae1851bc2321832c88af85d570 (diff)
downloadgitea-d8136c9c3cf0f7d84510402f01cbe07a656a0587.tar.gz
gitea-d8136c9c3cf0f7d84510402f01cbe07a656a0587.zip
Merge branch 'dev-ldap' into dev
Diffstat (limited to 'models/user.go')
-rw-r--r--models/user.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/models/user.go b/models/user.go
index 27140cf1c1..a4b753f8e1 100644
--- a/models/user.go
+++ b/models/user.go
@@ -26,12 +26,6 @@ const (
UT_ORGANIZATION
)
-// Login types.
-const (
- LT_PLAIN = iota + 1
- LT_LDAP
-)
-
var (
ErrUserOwnRepos = errors.New("User still have ownership of repositories")
ErrUserAlreadyExist = errors.New("User already exist")
@@ -50,6 +44,7 @@ type User struct {
Email string `xorm:"unique not null"`
Passwd string `xorm:"not null"`
LoginType int
+ LoginSource int64 `xorm:"not null default 0"`
Type int
NumFollowers int
NumFollowings int