aboutsummaryrefslogtreecommitdiff
path: root/internal/route/admin/users.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/route/admin/users.go')
-rw-r--r--internal/route/admin/users.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/route/admin/users.go b/internal/route/admin/users.go
index ef890e7d..9b273b36 100644
--- a/internal/route/admin/users.go
+++ b/internal/route/admin/users.go
@@ -79,7 +79,7 @@ func NewUserPost(c *context.Context, f form.AdminCrateUser) {
u := &db.User{
Name: f.UserName,
Email: f.Email,
- Passwd: f.Password,
+ Password: f.Password,
IsActive: true,
}
@@ -186,7 +186,7 @@ func EditUserPost(c *context.Context, f form.AdminEditUser) {
}
if len(f.Password) > 0 {
- u.Passwd = f.Password
+ u.Password = f.Password
var err error
if u.Salt, err = db.GetUserSalt(); err != nil {
c.Error(err, "get user salt")