refactor(db): rename User.Passwd to User.Password (#7196)

This commit is contained in:
Joe Chen
2022-10-22 14:56:25 +08:00
committed by GitHub
parent c502dc6ed8
commit 7cbd84d5b3
10 changed files with 21 additions and 21 deletions

View File

@@ -230,7 +230,7 @@ func (db *users) Create(ctx context.Context, username, email string, opts Create
Name: username,
FullName: opts.FullName,
Email: email,
Passwd: opts.Password,
Password: opts.Password,
LoginSource: opts.LoginSource,
LoginName: opts.LoginName,
Location: opts.Location,
@@ -355,7 +355,7 @@ type User struct {
FullName string
// Email is the primary email address (to be used for communication)
Email string `xorm:"NOT NULL" gorm:"not null"`
Passwd string `xorm:"NOT NULL" gorm:"not null"`
Password string `xorm:"passwd NOT NULL" gorm:"column:passwd;not null"`
LoginSource int64 `xorm:"NOT NULL DEFAULT 0" gorm:"not null;default:0"`
LoginName string
Type UserType