mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-17 11:59:30 +00:00
Pools limit concurrent nums
This commit is contained in:
parent
601c10309d
commit
6f68620860
8 changed files with 43 additions and 25 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue