aboutsummaryrefslogtreecommitdiff
path: root/internal/db/users.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/users.go')
-rw-r--r--internal/db/users.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/db/users.go b/internal/db/users.go
index 94bc25f5..1ae50064 100644
--- a/internal/db/users.go
+++ b/internal/db/users.go
@@ -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