aboutsummaryrefslogtreecommitdiff
path: root/internal/route/user/setting.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/route/user/setting.go')
-rw-r--r--internal/route/user/setting.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/route/user/setting.go b/internal/route/user/setting.go
index 66e3ace2..8c0e87c1 100644
--- a/internal/route/user/setting.go
+++ b/internal/route/user/setting.go
@@ -202,7 +202,7 @@ func SettingsPasswordPost(c *context.Context, f form.ChangePassword) {
} else if f.Password != f.Retype {
c.Flash.Error(c.Tr("form.password_not_match"))
} else {
- c.User.Passwd = f.Password
+ c.User.Password = f.Password
var err error
if c.User.Salt, err = db.GetUserSalt(); err != nil {
c.Errorf(err, "get user salt")