diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-08-12 22:18:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-12 22:18:44 +0800 |
commit | f960e19c590d27fe62a3a6241f1ea8b7fadde13a (patch) | |
tree | cb5045491959550fad930e82434a7f6e27d33cf3 /cmd/admin.go | |
parent | 921d90fd8b929533e30c896923cb3a6f3d33f45a (diff) | |
download | gitea-f960e19c590d27fe62a3a6241f1ea8b7fadde13a.tar.gz gitea-f960e19c590d27fe62a3a6241f1ea8b7fadde13a.zip |
Only update needed columns when update user (#2296)
* only update needed columns when update user
* fix missing update_unix column
Diffstat (limited to 'cmd/admin.go')
-rw-r--r-- | cmd/admin.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/admin.go b/cmd/admin.go index aec1b8dad4..928bc1ebba 100644 --- a/cmd/admin.go +++ b/cmd/admin.go @@ -103,7 +103,7 @@ func runChangePassword(c *cli.Context) error { return fmt.Errorf("%v", err) } user.EncodePasswd() - if err := models.UpdateUser(user); err != nil { + if err := models.UpdateUserCols(user, "passwd", "salt"); err != nil { return fmt.Errorf("%v", err) } |