aboutsummaryrefslogtreecommitdiff
path: root/internal/route/api/v1/admin/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/route/api/v1/admin/user.go')
-rw-r--r--internal/route/api/v1/admin/user.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/route/api/v1/admin/user.go b/internal/route/api/v1/admin/user.go
index 543220db..7fad5ed1 100644
--- a/internal/route/api/v1/admin/user.go
+++ b/internal/route/api/v1/admin/user.go
@@ -41,7 +41,7 @@ func CreateUser(c *context.APIContext, form api.CreateUserOption) {
Name: form.Username,
FullName: form.FullName,
Email: form.Email,
- Passwd: form.Password,
+ Password: form.Password,
IsActive: true,
}
@@ -82,7 +82,7 @@ func EditUser(c *context.APIContext, form api.EditUserOption) {
}
if len(form.Password) > 0 {
- u.Passwd = form.Password
+ u.Password = form.Password
var err error
if u.Salt, err = db.GetUserSalt(); err != nil {
c.Error(err, "get user salt")