diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-19 21:05:48 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-19 21:05:48 -0400 |
commit | 6f6862086047ba6902f51de3cb66eb3af04fffbd (patch) | |
tree | cad4673115913aa14413c6a7082359d99a5dd913 /models | |
parent | 601c10309dd93c55c3c825c5a5c2384d46493589 (diff) | |
download | gitea-6f6862086047ba6902f51de3cb66eb3af04fffbd.tar.gz gitea-6f6862086047ba6902f51de3cb66eb3af04fffbd.zip |
Pools limit concurrent nums
Diffstat (limited to 'models')
-rw-r--r-- | models/user.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/models/user.go b/models/user.go index 3c31b3aff4..76cf2d20ce 100644 --- a/models/user.go +++ b/models/user.go @@ -51,8 +51,7 @@ type User struct { Location string Website string IsActive bool - Rands string `xorm:"VARCHAR(10)"` - Expired time.Time + Rands string `xorm:"VARCHAR(10)"` Created time.Time `xorm:"created"` Updated time.Time `xorm:"updated"` } @@ -125,7 +124,6 @@ func RegisterUser(user *User) (*User, error) { user.LowerName = strings.ToLower(user.Name) user.Avatar = base.EncodeMd5(user.Email) user.AvatarEmail = user.Email - user.Expired = time.Now().Add(3 * 24 * time.Hour) user.Rands = GetUserSalt() if err = user.EncodePasswd(); err != nil { return nil, err |