diff options
author | Joe Chen <jc@unknwon.io> | 2022-10-22 14:56:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-22 14:56:25 +0800 |
commit | 7cbd84d5b3d4af36e4afcf7af9374bc765f6bb9c (patch) | |
tree | 74f4fd7f5df3af0680ddbb16c3c5f1b4985e5eb2 /internal/route/user/setting.go | |
parent | c502dc6ed888a4cf2c8b36176585f4166536ab6d (diff) |
refactor(db): rename `User.Passwd` to `User.Password` (#7196)
Diffstat (limited to 'internal/route/user/setting.go')
-rw-r--r-- | internal/route/user/setting.go | 2 |
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") |